Skip to content
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

Add support for Pandoc tex_math_single_backslash syntax extension #235

Closed
Witiko opened this issue Dec 29, 2022 · 2 comments · Fixed by #270
Closed

Add support for Pandoc tex_math_single_backslash syntax extension #235

Witiko opened this issue Dec 29, 2022 · 2 comments · Fixed by #270
Assignees
Labels
feature request lua Related to the Lua interface and implementation plaintex Related to the plain TeX interface and implementation syntax extension Related to syntax extensions and dialects of markdown
Milestone

Comments

@Witiko
Copy link
Owner

Witiko commented Dec 29, 2022

We should add support for Pandoc tex_math_single_backslash syntax extension.
Progresses #61.

Assigned to @lostenderman as part of grant project MUNI/33/1658/2022.
Tentatively scheduled for milestone 2.22.0 to be delivered by March 31, 2023.

@Witiko Witiko added feature request lua Related to the Lua interface and implementation plaintex Related to the plain TeX interface and implementation syntax extension Related to syntax extensions and dialects of markdown labels Dec 29, 2022
@Witiko Witiko added this to the 2.22.0 milestone Dec 29, 2022
@lostenderman
Copy link
Collaborator

Would this be a good way to define renderers for the different tex math extensions?

  • tex_math_dollars
\def\markdownRendererDollarsInlineMathPrototype#1{%
  \markdownRendererInlineMath{#1}}%
\def\markdownRendererDollarsDisplayMathPrototype#1{%
  \markdownRendererDisplayMath{#1}}%
  • tex_math_single_backslash
\def\markdownRendererSingleBackslashInlineMathPrototype#1{%
  \markdownRendererInlineMath{#1}}%
\def\markdownRendererSingleBackslashDisplayMathPrototype#1{%
  \markdownRendererDisplayMath{#1}}%
  • tex_math_double_backslash
\def\markdownRendererDoubleBackslashInlineMathPrototype#1{%
  \markdownRendererInlineMath{#1}}%
\def\markdownRendererDoubleBackslashDisplayMathPrototype#1{%
  \markdownRendererDisplayMath{#1}}%
  • these would defined as they are now
\def\markdownRendererInlineMathPrototype{...}
\def\markdownRendererDisplayMathPrototype{...}

Each would have its pair of renderers for inline and display math which
would be rendered via a shared pair of renderers, so each one could be redefined separately
but also all tex inline or display math could be redefined at once.

@Witiko
Copy link
Owner Author

Witiko commented Feb 23, 2023

I would be in favor of having just a single pair of renderers. Each renderer should correspond to a semantic element. It does not seem to me that the elements given by the different syntax extensions for math consistute independent semantic elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request lua Related to the Lua interface and implementation plaintex Related to the plain TeX interface and implementation syntax extension Related to syntax extensions and dialects of markdown
Projects
None yet
2 participants