Skip to content

Serialisation of internal links in Lexical → Markdown converter #16967

Description

@immotus

Documentation Issue

The Converting JSX documentation page explains very well how to provide a converter for internal links when converting RichText to JSX.

However, the Converting RichText to Markdown page lacks the same level of detail, and it is unclear how to resolve the following warning:

Lexical → Markdown converter: found internal link but internalDocToHref is not provided — link will have an empty href

Obviously, it requires the internalDocToHref converter, but trawling through the convertLexicalToMarkdown function API, it is not clear how to provide custom converters. Even the convertLexicalToPlaintext function appears to provide a parameter that takes custom converters.

Is this a shortcoming of the API or unclear documentation?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions