Skip to content

Support Syntax Highlighting for Code #91

Closed
@oubiwann

Description

@oubiwann

To support synatx highlighting for blocks of markdown, we would need to:

  1. identify the block
  2. determine the source type (e.g. the language post-fix at the start of the block)
  3. extract the block body
  4. run in through a syntax highlighter
  5. return the HTML

This could be done with either the following oldie-but-goodie or something like it:

Then, there's the JS approach where we could use this:

I guess it's more modern to go with the latter approach ;-) Will need to figure out how it works:

(Note, content for this ticket taken from a comment in lfe-deprecated/docs3#1 made on Mar 14, 2016.)

Part of epic #66

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions