File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,9 @@ def finder(element):
96
96
if child .tail :
97
97
if child .tail .find (self .getConfig ("PLACE_MARKER" )) > - 1 :
98
98
return child , element , False
99
- finder (child )
99
+ child_res = finder (child )
100
+ if child_res is not None :
101
+ return child_res
100
102
return None
101
103
102
104
res = finder (root )
Original file line number Diff line number Diff line change
1
+ < blockquote >
2
+ < blockquote >
3
+ < div class ="footnote ">
4
+ < hr />
5
+ < ol >
6
+ < li id ="fn:1 ">
7
+ < p > A Footnote. < a class ="footnote-backref " href ="#fnref:1 " rev ="footnote " title ="Jump back to footnote 1 in the text "> ↩</ a > </ p >
8
+ </ li >
9
+ </ ol >
10
+ </ div >
11
+ < p > Some text with a footnote< sup id ="fnref:1 "> < a class ="footnote-ref " href ="#fn:1 " rel ="footnote "> 1</ a > </ sup > .</ p >
12
+ </ blockquote >
13
+ </ blockquote >
Original file line number Diff line number Diff line change
1
+ >> ///Footnotes Go Here///
2
+ >>
3
+ >> Some text with a footnote[^1].
4
+
5
+ [^1]: A Footnote.
You can’t perform that action at this time.
0 commit comments