Skip to content

Franklin: Getting the hljs syntax highlighting to work on Pluto codeblocks #144

@alecloudenback

Description

@alecloudenback

I think the root cause is that when the output is generated, it's already processed as HTML so Franklin doesn't have the chance to apply the hljs formatting.

This is coming up in the context of another attempt at using PlutoStaticHTML on the JuliaActuary website. For example, this notebook output doesn't have the same code formatting as the codeblocks on this Franklin-markdown-based page

I think by writing the Pluto code to a simple markdown block instead of an HTML block then Franklin/hljs would get a chance to process the syntax highlighting. Is there an existing/easy way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions