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

Add example for event markdown-lexer-config #245

Open
nixjdm opened this issue Sep 7, 2018 · 0 comments
Open

Add example for event markdown-lexer-config #245

nixjdm opened this issue Sep 7, 2018 · 0 comments

Comments

@nixjdm
Copy link
Member

nixjdm commented Sep 7, 2018

From @paternal in lektor/lektor#587

According to the documentation event markdown-lexer-config "is where lexer configuration can be set".

However, there is no example, and I could not find anybody using it (see for instance this github search).

I would like to implement a plugin adding a new lexer, but I do not understand how to use this event.

(Note that I could use lektor-shortcodes as a starting point, which I did, but the commit introducing markdown-lexer-config explicitly says that "he new hook is of use to plugins like lektor-shortcodes, which seek to add new lexing rules to the Markdown syntax". So I think there might be a simpler way to do this than to follow lektor-shortcodes way?)

Thanks

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

1 participant