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

Enhance pygments gherkin lexer to recognize markdown #1

Open
mhfrantz opened this issue Nov 6, 2015 · 0 comments
Open

Enhance pygments gherkin lexer to recognize markdown #1

mhfrantz opened this issue Nov 6, 2015 · 0 comments

Comments

@mhfrantz
Copy link
Member

mhfrantz commented Nov 6, 2015

Groc uses pygments to parse our Gherkin .feature files and render them as .html. Pygments already supports both Gherkin and Markdown, but does not yet support Markdown inside Gherkin. It may be easy to implement.

Pygments lexer documentation: http://pygments.org/docs/lexerdevelopment/

Multiple lexers: http://pygments.org/docs/lexerdevelopment/#using-multiple-lexers
Gives an example of using the Javascript lexer from within the HTML lexer.

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

No branches or pull requests

1 participant