Skip to content

Integrate highlight-loader and highlight.js #2

Open

Description

@bebraw

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?

Activity

  1. eldh commented on Mar 13, 2015

    @eldh
    Member

    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).

  2. bebraw commented on Mar 16, 2015

    @bebraw
    MemberAuthor

    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.

  3. eldh commented on Mar 16, 2015

    @eldh
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions