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

Integrate highlight-loader and highlight.js #2

Open
bebraw opened this issue Mar 13, 2015 · 3 comments
Open

Integrate highlight-loader and highlight.js #2

bebraw opened this issue Mar 13, 2015 · 3 comments

Comments

@bebraw
Copy link
Member

bebraw commented Mar 13, 2015

See https://www.npmjs.com/package/highlight-loader . It would take a bit more Webpack config. Maybe sites themselves should be able to tweak the basic conf?

@eldh
Copy link
Member

eldh commented Mar 13, 2015

Perhaps. You could also do highlight integration in the postProcess step, right? What's the benefit of doing this in a loader? Atm, the markdown conversion is done after the file has been loaded (because we first need to seperate the front-matter).

@bebraw
Copy link
Member Author

bebraw commented Mar 16, 2015

Yeah, this is something that needs to get applied on HTML. I just realized yaml-headmatter-loader outputs JSON so there isn't a nice way to pipe here as far as I can see.

The right place to do this would be just after the Markdown conversion step.

@eldh
Copy link
Member

eldh commented Mar 16, 2015

Either override content or use postProcessPosts, I'd go for the latter.

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

2 participants