Replies: 1 comment
-
The Markdown parser escapes them as def on_page_markdown(markdown, *, page, config, files):
if "<" in markdown or ">" in markdown:
# Do something ... Note that using HTML in Markdown is valid, so the hook above would run when it sees any HTML tag. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to report in log or stop building HTML when there are special characters (< and > in this case) in markdown?
If there are < and > characters in HTML files, the translation engine fails to parse such files.
For example, this para has two strings with < and > characters. I would like Material for MkDocs to report in log or stop building when such characters are found in Markdown.
Product Overview
HCL Digital Experience (DX) is the trusted solution for an enterprise's digital experience at the intersection of processes, content, and applications. HCL DX uses and . HCL DX is architected to build more than just websites. It is built Cloud Native to serve your customers, employees, and partners and to deliver the functionality and stability that they need and expect.
Thanks...
Syed
Beta Was this translation helpful? Give feedback.
All reactions