facebook / facebook/lexical

Feature: Ability to customize Markdown nested list spacing

Open
#2,213 0 comments 0 reactions 0 assignees View on GitHub
enhancement markdown
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
55

Description

Nested lists in markdown can work with two or four base units of spaces

For flexibility reasons, Lexical should allow consuming and emitting markdown, with a configurable amount of whitespace.

It looks like this is a "known issue" as the source code indicates this should be configurable

https://github.com/facebook/lexical/blob/main/packages/lexical-markdown/src/v2/MarkdownTransformers.js#L48

I've ended up "patching" lexical in the short term, but would love for this to be built in!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.