WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Indented fenced code blocks not highlighting in lists #71

@christhekeele

Description

@christhekeele

I believe this is the right place to submit this issue!

The correct way (AFAIK) to include a fenced code block (or anything) in a multi-line list item in markdown is by indenting it inbetween 3 and 7 spaces (I usually go for 4):

- A list

- with bullets

    with multiple lines

- and fenced code blocks

    ```elixir
    similarly indented
    ````

This (correctly) renders as:

  • A list

  • with bullets

    with multiple lines

  • and fenced code blocks

    similarly indented

However, at least in EXTRAs in my ex_doc projects, I do not get syntax highlighting for these indented code blocks.

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