Skip to content

Change fences default to true #49

Closed
@wooorm

Description

@wooorm

Initial checklist

Problem

Fenced code is (arguably) much better than indented code.

  • Indented code and lists interfere
  • Indented code does not work in MDX
  • Indented code uses 4 spaces, block quotes use a > and one space, lists use different “indents”, making markup source code impossible to align, so best to not even try
  • fenced code supports language flags, which are super useful
  • fenced code supports “meta” (arbitrary stuff), which is while not used much, useful in plugins

Historically fenced code was not supported everywhere. I think we’re now at a point where it’s basically everywhere. Hence this suggestion.

Solution

default to fences: true.

Alternatives

as is

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions