Coder Social home page Coder Social logo

Comments (5)

vspinu avatar vspinu commented on July 22, 2024

Which markdown process supports that syntax? I have used pandoc specification and it does not include the above.

from poly-markdown.

ahonkela avatar ahonkela commented on July 22, 2024

It seems to be a pandoc extension tex_math_single_backslash that is enabled in RMarkdown by default (https://www.rdocumentation.org/packages/rmarkdown/versions/1.10/topics/rmarkdown_format) so it would seem to make sense to enable that at least for the markdown+r mode.

from poly-markdown.

vspinu avatar vspinu commented on July 22, 2024

There are 2 pandoc extensions, one for single and one for double backslashed. I am guessing R markdown activates the single backslashed one, or it does both?

from poly-markdown.

ahonkela avatar ahonkela commented on July 22, 2024

"By default R Markdown is defined as all pandoc markdown extensions with the following tweaks for backward compatibility with the markdown package:

+autolink_bare_uris
+ascii_identifier
+tex_math_single_backslash"
(https://rmarkdown.rstudio.com/html_document_format#markdown_extensions)

from poly-markdown.

vspinu avatar vspinu commented on July 22, 2024

Well, "all" need not always mean "all", you know;)

Could you please try \\[..\\] and \\(..\\) blocks and see if it does work? I cannot do it myself because it don't even have a good idea of what "does work" means in this context as I never used math in Rmarkdown.

This is mostly out of curiosity. I am unlikely to implement the double backslashed versions unless someone really cannot do without at some point in the future.

from poly-markdown.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.