doc: wikiparser: Place anchors inside paragraphs

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2020-08-28 12:10:05 -04:00
1 parent f3dee93a61
commit cafbdaab19
1 file changed
+2 -2
+2 -2
View File
@@ -1053,7 +1053,7 @@ TableItem([Paragraph([PlainText('3 ')])])])])]
[Category('FreedomBox')]
>>> parse_wiki('<<Anchor(gettinghelp)>>')
[Anchor('gettinghelp')]
[Paragraph([Anchor('gettinghelp')])]
>>> parse_wiki('<<Include(FreedomBox/Portal)>>')
[Include('FreedomBox/Portal')]
@@ -1521,7 +1521,7 @@ PlainText(' dialog. ')])])])]
match = re.match(r'<<Anchor\((.+)\)>>', line)
if match:
content = match.group(1)
elements.append(Anchor(content))
elements.append(Paragraph([Anchor(content)]))
continue
# Include