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 filter event for backtick code block #1891

Closed
leesei opened this issue Apr 15, 2016 · 0 comments · Fixed by #5095
Closed

Add filter event for backtick code block #1891

leesei opened this issue Apr 15, 2016 · 0 comments · Fixed by #5095

Comments

@leesei
Copy link
Member

leesei commented Apr 15, 2016

Provides a easier way to extend language supported:
hexojs/hexo-util#13

Tag plugins can also handle the event so user can use both backtick and tag.
Current implementations relied on before_post_render filter and internally look up backtick blocks, which is inefficient:
https://github.com/bubkoo/hexo-filter-fenced-code
https://github.com/akfish/hexo-math

Allows external highlighter:
#1300 and a whole bunch of highlight issues
We can move Highlight.js code and css to hexojs/hexo-highlight-js plugin.

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

Successfully merging a pull request may close this issue.

1 participant