-
-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Talk on emptyline support in Display LaTex #1004
Comments
Understood, but I will explain why I have made these decisions:
Because of (1) and the fact that I do not wish to do all of SuperFence's complicated logic to implement block math (as stated in (2)), I have chosen (3) to be an acceptable path that I am currently willing to implement. My goal is not to implement compatibility between different parsers. I am sorry if you wish I could support full compatibility, but I do not have the time or motivation to do so. If I support compatibility in Typora, I'm sure I'll then get requests to ensure compatibility for some other parser. I cannot match compatibility with all parsers. If at some future point, Python Markdown handling of fenced styled document patterns improves, I may reconsider, but right now, SuperFences is the only extensions I am willing to support that requires such complicated workarounds. |
Got it, I think Waylan maybe feel headache to rewrite blockprocessors, since it maybe caused refactor of core logic. 😄 |
The big issue is definitely how block processors work. The way the blocks are broken up and processed make it difficult. I tried to implement fenced code blocks via a block processor early on, but when you get into lists, it is difficult to get all the pieces when there are new lines. And multiple consecutive new lines get reduced to a single new line which just isn't acceptable for for raw code blocks. Preprocessors was the only real, acceptable approach without rewriting a lot of the code. |
Ref the issue Python-Markdown/markdown#993
Alternative Math Blocks is great, but it's also a workaround for display latex with emptyline.
The finally target for me is rendering the markdown file compatiable with Typora(it support emptyline in dispaly LaTex), so I can use it write markdown file and don't have to remember to modified the synax from top to bottom for Python's
mkdocs
every time.The text was updated successfully, but these errors were encountered: