We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 104c468 commit 6410472Copy full SHA for 6410472
mkdocs_embed_file_plugins/plugin.py
@@ -27,7 +27,7 @@ def search_in_file(citation_part: str, contents: str) -> str:
27
data = contents.split('\n')
28
if '#' not in citation_part:
29
# All text citation
30
- return contents
+ return re.sub(r'\^\w+$', '', contents)
31
elif '#' in citation_part and not '^' in citation_part:
32
# cite from title
33
sub_section = []
@@ -45,7 +45,7 @@ def search_in_file(citation_part: str, contents: str) -> str:
45
elif inverse >= heading:
46
break
47
sub_section = [x for y in sub_section for x in y]
48
-
+ sub_section = [re.sub(r'\^\w+$', '', x) for x in sub_section]
49
sub_section = '\n'.join(sub_section)
50
return sub_section
51
elif '#^' in citation_part:
0 commit comments