-
-
Notifications
You must be signed in to change notification settings - Fork 281
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
Handle remark macros via xaringan? #80
Comments
Thanks for letting me know this hidden feature! Not being able to scale images using the Markdown syntax is probably the only reason that I was not totally satisfied with remark.js. I'll think more about how to support macros. |
That would be a great enhancement 👍 |
Thanks @yihui. I was wondering if the concept of A user would put the javascript macros they want in includes:
- macro: 'my_macros.js' in the YAML header and then have xaringan insert the content of |
The |
From version 0.8.0, remark.js has had the ability to take user defined macros that can control output. I cam across this because I wanted to control the size of a single image without polluting my MD with raw HTML.
I found this solution gnab/remark#72 (comment) which suggests the following
with this macro
The macro needs to be inserted right before
Are there any plans to allow this advanced usage of remark.js within xaringan?
(I know I can scale the image using HTML or CSS; this Q is more about handling macros which are a feature of the underlying library.)
The text was updated successfully, but these errors were encountered: