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

Preview working with jQuery #289

Open
OssiPesonen opened this issue Jul 10, 2017 · 1 comment
Open

Preview working with jQuery #289

OssiPesonen opened this issue Jul 10, 2017 · 1 comment

Comments

@OssiPesonen
Copy link

Please move the NOTE section from your instructions to the top of the page, or add it to Github, clearly.

It was a small bump on the road to discover preview button does nothing without those plugins, which need Node.js to work. jQuery does not cut it.

However, using the onPreview callback, you can basically include any JavaScript markdown parser to return working HTML on the preview. I used SimonWaldherr/micromarkdown.js from Github.

onPreview: function (e) { return micromarkdown.parse(e.getContent()); }

Please update the instructions.

@toopay
Copy link
Member

toopay commented Jul 18, 2017

@OssiPesonen care to open PR? The doc is on gh-page branch

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

No branches or pull requests

2 participants