-
Notifications
You must be signed in to change notification settings - Fork 183
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
markdownit options are created but not used #11
Comments
Thanks for the quick answer, that fix looks sane, though I think the only downside is that for me with this setup the CMS preview will now show different behaviour to the widget itself. Actually I can't really get away from this I don't think?:
I guess one way to resolve that would be to render the body of the preview with markdown-it directly? |
The previews are rendered in React using the Netlify CMS |
Closing this for now, but let me know if you feel this still needs looking at and I will re-open. Thanks. |
eleventy-netlify-boilerplate/.eleventy.js
Lines 59 to 65 in f3dabf6
I ended up getting a bit confused by the presence of this block given the removal of the call to
eleventyConfig.setLibrary("md", markdownIt(options));
(removed in 42084ba, perhaps as collateral when removing markdownit-anchor?)I think it'd be clearer either to make the call to set the options, or remove the block containing the options. In my case this was confusing because at first pass I was expecting breaks to be enabled, but they weren't as the default config was being used, which has
breaks: false
(If removing the config, I think the block below can go too)
The text was updated successfully, but these errors were encountered: