Skip to content

Commit 44f609e

Browse files
committed
fix: use markdown_extension config instead of forcing value
1 parent 4990cef commit 44f609e

File tree

1 file changed

+2
-36
lines changed

1 file changed

+2
-36
lines changed

mkdocs_embed_file_plugins/plugin.py

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -155,44 +155,10 @@ def cite(md_link_path, link, soup, citation_part, config, callouts, custom_attr,
155155
}
156156
quote = convert_text_attributes(quote, config_attr)
157157
quote = strip_comments(quote)
158+
md_extensions = config['markdown_extensions']
158159
html = markdown.markdown(
159160
quote,
160-
extensions=[
161-
'nl2br',
162-
'footnotes',
163-
'attr_list',
164-
'mdx_breakless_lists',
165-
'smarty',
166-
'sane_lists',
167-
'tables',
168-
'admonition',
169-
'codehilite',
170-
'extra',
171-
'pymdownx.tilde',
172-
'pymdownx.superfences',
173-
'pymdownx.striphtml',
174-
'pymdownx.tabbed',
175-
'pymdownx.tasklist',
176-
'pymdownx.smartsymbols',
177-
"pymdownx.arithmatex",
178-
"pymdownx.b64",
179-
"pymdownx.caret",
180-
"pymdownx.critic",
181-
"pymdownx.details",
182-
"pymdownx.emoji",
183-
"pymdownx.escapeall",
184-
"pymdownx.highlight",
185-
"pymdownx.extra",
186-
"pymdownx.inlinehilite",
187-
"pymdownx.keys",
188-
"pymdownx.magiclink",
189-
"pymdownx.mark",
190-
"pymdownx.progressbar",
191-
"pymdownx.saneheaders",
192-
"pymdownx.smartsymbols",
193-
"pymdownx.snippets",
194-
WikiLinkPlusExtension(md_config['mdx_wikilink_plus']),
195-
],
161+
extensions=md_extensions,
196162
)
197163
link_soup = BeautifulSoup(html, 'html.parser')
198164
if link_soup:

0 commit comments

Comments
 (0)