-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
<!-- .element: class="fragment" data-fragment-order="5" -->
(could be abbreviated as "<5>" as in beamer)<span class=fragment data-fragment-order="5">
<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
?The text was updated successfully, but these errors were encountered: