diff --git a/docs/docs/android/api-reference/enriched-markdown-text.md b/docs/docs/android/api-reference/enriched-markdown-text.md index 78b18890b..7c483dbb6 100644 --- a/docs/docs/android/api-reference/enriched-markdown-text.md +++ b/docs/docs/android/api-reference/enriched-markdown-text.md @@ -117,6 +117,7 @@ data class MarkdownOptions( val permissiveAutolinks: Boolean = true, val hardSoftBreaks: Boolean = false, val preserveBlankLines: Boolean = false, + val preserveWindowsPaths: Boolean = false, val admonitions: Boolean = false, ) { companion object { @@ -191,6 +192,12 @@ Keeps consecutive blank lines instead of collapsing them, so vertical whitespace +#### `preserveWindowsPaths` + +When `true`, a backslash that separates a Windows drive path stays in the text instead of acting as an escape, so `C:\Users\me\.config` keeps every separator. CommonMark would render it as `C:\Users\me.config`. Escapes outside such a path, code spans, and link destinations are unchanged. + + + #### `admonitions` Renders a blockquote whose first line is `> [!NOTE]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!WARNING]`, or `> [!CAUTION]` as a themed callout with an icon and a title. Without it the marker stays literal text inside an ordinary quote. Colors come from the [`admonitions`](/android/api-reference/style-properties#admonitions) block. diff --git a/docs/docs/ios/api-reference/enriched-markdown-text.md b/docs/docs/ios/api-reference/enriched-markdown-text.md index 9ef15b364..07b16e5b8 100644 --- a/docs/docs/ios/api-reference/enriched-markdown-text.md +++ b/docs/docs/ios/api-reference/enriched-markdown-text.md @@ -63,6 +63,7 @@ public struct MarkdownParsingOptions: Sendable, Equatable { public var hardSoftBreaks: Bool // false public var permissiveAutolinks: Bool // true public var preserveBlankLines: Bool // false + public var preserveWindowsPaths: Bool // false public var admonitions: Bool // false public static let commonMark: MarkdownParsingOptions @@ -127,6 +128,12 @@ Keeps consecutive blank lines instead of collapsing them, so vertical whitespace +#### `preserveWindowsPaths` + +When `true`, a backslash that separates a Windows drive path stays in the text instead of acting as an escape, so `C:\Users\me\.config` keeps every separator. CommonMark would render it as `C:\Users\me.config`. Escapes outside such a path, code spans, and link destinations are unchanged. + + + #### `admonitions` Renders a blockquote whose first line is `> [!NOTE]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!WARNING]`, or `> [!CAUTION]` as a themed callout with an icon and a title. Without it the marker stays literal text inside an ordinary quote. Colors come from the [`Admonition()`](/ios/api-reference/style-properties#admonition) element. diff --git a/docs/docs/react-native/api-reference/enriched-markdown-text.md b/docs/docs/react-native/api-reference/enriched-markdown-text.md index 412e48962..141d39dea 100644 --- a/docs/docs/react-native/api-reference/enriched-markdown-text.md +++ b/docs/docs/react-native/api-reference/enriched-markdown-text.md @@ -131,7 +131,7 @@ Markdown flavor. `'commonmark'` (default) renders the whole document as a single Toggles for md4c's parser extensions; each opts a piece of extra inline syntax in or out. Pass only the flags you want to change; the rest keep their defaults below. Where a flag enables a new inline element, tune its appearance through the matching [style property](/react-native/api-reference/style-properties). - + #### `underline` @@ -189,6 +189,12 @@ When `true`, preserves runs of consecutive blank lines from the source instead o +#### `preserveWindowsPaths` + +When `true`, a backslash that separates a Windows drive path stays in the text instead of acting as an escape, so `C:\Users\me\.config` keeps every separator. CommonMark would render it as `C:\Users\me.config`. Escapes outside such a path, code spans, and link destinations are unchanged. + + + #### `admonitions` Renders GitHub-style admonitions (also called alerts): a blockquote whose first line is `> [!NOTE]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!WARNING]`, or `> [!CAUTION]` becomes a themed callout with an icon and a title header instead of a plain quote. Unlike the other flags, this one is **on by default**. diff --git a/docs/docs/react-native/guides/web-support.md b/docs/docs/react-native/guides/web-support.md index b1960cd3f..1ac2afa81 100644 --- a/docs/docs/react-native/guides/web-support.md +++ b/docs/docs/react-native/guides/web-support.md @@ -279,7 +279,7 @@ All core `EnrichedMarkdownText` features are supported on web, including: - [`renderers`](/react-native/guides/custom-block-renderers) - React replacements for standalone images, standalone links and `