Skip to content

Docs: markdown headers cause problematic indentation #2412

Open
@ceedubs

Description

Consider the following doc:

myDoc = {{

# Header 1

Stuff

## Header 2

More stuff.

## Another Header 2

More stuff.

### A Header 3

More stuff.
}}

When this is rendered by either view or display, additional indentation is added:

# Header 1

  Stuff

  # Header 2
  
    More stuff.

  # Another Header 2
  
    More stuff.
  
    # A Header 3
    
      More stuff.

This is problematic, because in markdown that extra indentation is the format for code blocks, so it doesn't render in the way that you would want it to:

Header 1

Stuff

Header 2

More stuff.

Another Header 2

More stuff.

# A Header 3

  More stuff.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions