File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 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]:
178178 node ["reftitle" ] = self .options ["tooltip" ] # TODO escape HTML
179179
180180 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 )
186183 else :
187184 content = nodes .inline (target , target )
188185 node .append (content )
@@ -195,7 +192,6 @@ def run(self) -> List[nodes.Node]:
195192
196193 # `visit_reference` requires that a reference be inside a `TextElement` parent
197194 container = nodes .paragraph (classes = self .options .get ("align" , []))
198- self .set_source_info (container )
199195 container += node
200196
201197 return [container ]
You can’t perform that action at this time.
0 commit comments