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

Literate Haskell grammar (markdown-unlit variant) #105

Open
dbaynard opened this issue May 5, 2017 · 1 comment
Open

Literate Haskell grammar (markdown-unlit variant) #105

dbaynard opened this issue May 5, 2017 · 1 comment

Comments

@dbaynard
Copy link

dbaynard commented May 5, 2017

The literate haskell syntax highlighting on github, does not work for files using the markdown-unlit syntax.

The bulk of the file should be parsed as markdown, except anything between one of

```haskell
~~~haskell
``` { .haskell }
~~~ { .haskell }

and one of

```
~~~

which should be parsed and highlighted as haskell.

Example (and another which uses latex style code blocks).

I'm unfamiliar with the entire process, and don't use atom, but I would quite like to see these lhs files highlighted correctly on github. I'm happy to help, though.

@lierdakil
Copy link
Contributor

There's a problem. Historically, lhs is LaTeX with Haskell sprinkled in, not Markdown. So literate Haskell grammar assumes TeX. It's not complicated to write another grammar, now for github-flavored Markdown, but I don't know how to disambiguate it from LaTeX-based literate Haskell. Any suggestions?

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