@lexical/markdown 0.52.1-nightly.20261027.0 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/LexicalMarkdown.dev.js +484 -426
- package/dist/LexicalMarkdown.prod.js +1 -1
- package/dist/importTextFormatTransformer.d.ts +5 -0
- package/dist/utils.d.ts +1 -0
- package/package.json +10 -10
- package/src/MarkdownExport.ts +8 -1
- package/src/MarkdownTransformers.ts +59 -10
- package/src/importTextFormatTransformer.ts +1 -1
- package/src/importTextMatchTransformer.ts +23 -1
- package/src/utils.ts +25 -6
package/README.md
CHANGED
|
@@ -87,6 +87,16 @@ And bundles of commonly used transformers:
|
|
|
87
87
|
|
|
88
88
|
Transformers are explicitly passed to markdown API allowing application-specific subset of markdown or custom transformers.
|
|
89
89
|
|
|
90
|
+
Default export protects numeric-reference, HTML and link syntax in text,
|
|
91
|
+
including constructs split across text nodes. `AT&T` and `a < b` stay readable;
|
|
92
|
+
named references keep their legacy import and export behavior. An ambiguous `<`
|
|
93
|
+
or `&` at the end of a text node is escaped conservatively. Code and strings
|
|
94
|
+
returned by custom transformers retain their existing serialization rules, as
|
|
95
|
+
does the legacy source escaping of `shouldPreserveNewLines`. Import reads
|
|
96
|
+
backslash escapes and decimal or hexadecimal references in one pass. Literal
|
|
97
|
+
brackets and guarded `<`/`&` use numeric references so escaping does not change
|
|
98
|
+
adjacent emphasis flanking.
|
|
99
|
+
|
|
90
100
|
There're three types of transformers:
|
|
91
101
|
|
|
92
102
|
- **Element transformer** handles top level elements (lists, headings, quotes, tables or code blocks)
|