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?
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:
Obviously, it requires the
internalDocToHrefconverter, but trawling through theconvertLexicalToMarkdownfunction 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?