File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -178,11 +178,8 @@ def run(self) -> List[nodes.Node]:
178
178
node ["reftitle" ] = self .options ["tooltip" ] # TODO escape HTML
179
179
180
180
if self .content :
181
- textnodes , _ = self .state .inline_text (
182
- "\n " .join (self .content ), self .lineno + self .content_offset
183
- )
184
- content = nodes .inline ("" , "" )
185
- content .extend (textnodes )
181
+ content = nodes .paragraph ()
182
+ self .state .nested_parse (self .content , self .content_offset , content )
186
183
else :
187
184
content = nodes .inline (target , target )
188
185
node .append (content )
@@ -195,7 +192,6 @@ def run(self) -> List[nodes.Node]:
195
192
196
193
# `visit_reference` requires that a reference be inside a `TextElement` parent
197
194
container = nodes .paragraph (classes = self .options .get ("align" , []))
198
- self .set_source_info (container )
199
195
container += node
200
196
201
197
return [container ]
You can’t perform that action at this time.
0 commit comments