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

Embedded purescript in markdown #48

Open
nwolverson opened this issue Sep 19, 2018 · 0 comments
Open

Embedded purescript in markdown #48

nwolverson opened this issue Sep 19, 2018 · 0 comments

Comments

@nwolverson
Copy link
Contributor

Not strictly an issue for this repo but it's maybe not entirely obvious without looking into it that's the case.

To embed PureScript syntax highlighting in (eg) markdown fenced code blocks, the source.purescript scope has to be embedded in the grammar.

For language-gfm, look here: https:/atom/language-gfm/blob/v0.90.5/grammars/gfm.cson#L287

For language-markdown, here: https:/burodepeper/language-markdown/blob/master/grammars/fixtures/fenced-code.cson#L71

markdown-preview already supports PureScript, by virtue of generic mapping foo to source.foo

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

No branches or pull requests

1 participant