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

Markdown macros/shortcuts #2864

Open
albop opened this issue Dec 14, 2020 · 0 comments
Open

Markdown macros/shortcuts #2864

albop opened this issue Dec 14, 2020 · 0 comments

Comments

@albop
Copy link

albop commented Dec 14, 2020

Thank you for this amazing software ! I'm using it a lot those days.

I especially like the possibility to "include" markdown files as it allows me to focus on the content first, and then incrementally improve the rendering, by adding some custom html within markdown, which is made easy by the handling of the <!-- .element ... --> additions and more generally the possibility to include arbitrary html.

However, I find myself writing the same cosmetic code and wish there was some kind of markdownesque macros/shortcuts for the following bits I write all the time.

  1. <!-- .element: class="fragment" data-fragment-order="5" --> (could be abbreviated as "<5>" as in beamer)
  2. <span class=fragment data-fragment-order="5">
  3. <img src="iimage.png" width="50%" class="fragment" data-fragment-order="5"> (pandoc syntax with 1. would have it as ![](image.png){width=50%}<5>)

In these small examples, the long version kind of kills the purpose of using markdown...
It would be nice to have shorter alternatives (not necessarily the ones I suggested)

It would be a small useful feature to have imho. But maybe there is already a way to achieve that, maybe by sending some preprocessing rules to marked.js ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant