react-native-enriched-markdown 1.0.1 → 1.1.0-nightly-20260815-afa9efb68
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
CHANGED
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
- 📐 CommonMark standard compliant
|
|
16
16
|
- 📊 GitHub Flavored Markdown (GFM)
|
|
17
17
|
- 🧮 LaTeX math rendering (block `$$...$$` with `flavor="github"`, inline `$...$` in all flavors)
|
|
18
|
-
- 🔀 [Markdown Streaming](docs/MARKDOWN_STREAMING.md) support (via [react-native-streamdown](https://github.com/software-mansion-labs/react-native-streamdown))
|
|
18
|
+
- 🔀 [Markdown Streaming](../../docs/MARKDOWN_STREAMING.md) support (via [react-native-streamdown](https://github.com/software-mansion-labs/react-native-streamdown))
|
|
19
19
|
- 🎨 Fully customizable styles for all elements
|
|
20
20
|
- ✨ Text selection and copy support
|
|
21
21
|
- 📌 Custom text selection context menu items
|
|
22
|
-
- 🔗 Interactive link handling with [per-URL-pattern styling](docs/MENTIONS.md#link-variants-styling) (`linkVariants`)
|
|
22
|
+
- 🔗 Interactive link handling with [per-URL-pattern styling](../../docs/MENTIONS.md#link-variants-styling) (`linkVariants`)
|
|
23
23
|
- 👤 Renders mentions as styled links (compatible with `EnrichedMarkdownTextInput` mention output)
|
|
24
24
|
- 🙈 Spoiler text with animated particle overlay and tap-to-reveal
|
|
25
25
|
- 🖼️ Native image interactions (iOS: Copy, Save to Camera Roll)
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
- 🔗 Auto-link detection with customizable regex
|
|
37
37
|
- 🔄 Smart copy/paste with Markdown preservation
|
|
38
38
|
- 🎨 Customizable bold, italic, and link colors
|
|
39
|
-
- 👤 [Mentions](docs/MENTIONS.md) with configurable indicators, suggestion lifecycle events, and per-pattern link styling
|
|
39
|
+
- 👤 [Mentions](../../docs/MENTIONS.md) with configurable indicators, suggestion lifecycle events, and per-pattern link styling
|
|
40
40
|
|
|
41
41
|
Since 2012 [Software Mansion](https://swmansion.com) is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues.
|
|
42
42
|
We can help you build your next dream product –
|
|
@@ -46,30 +46,30 @@ We can help you build your next dream product –
|
|
|
46
46
|
|
|
47
47
|
- [Prerequisites](#prerequisites)
|
|
48
48
|
- [Installation](#installation)
|
|
49
|
-
- [Native assets (install-time download)](docs/NATIVE_ASSETS.md)
|
|
49
|
+
- [Native assets (install-time download)](../../docs/NATIVE_ASSETS.md)
|
|
50
50
|
- [EnrichedMarkdownText](#enrichedmarkdowntext-1)
|
|
51
|
-
- [Usage](docs/TEXT.md#usage)
|
|
52
|
-
- [Supported Markdown Elements](docs/TEXT.md#supported-markdown-elements)
|
|
53
|
-
- [Copy Options](docs/TEXT.md#copy-options)
|
|
54
|
-
- [Accessibility](docs/TEXT.md#accessibility)
|
|
55
|
-
- [RTL Support](docs/TEXT.md#rtl-support)
|
|
56
|
-
- [Customizing Styles](docs/TEXT.md#customizing-styles)
|
|
57
|
-
- [LaTeX Math](docs/LATEX_MATH.md)
|
|
58
|
-
- [Image Caching](docs/IMAGE_CACHING.md)
|
|
59
|
-
- [Markdown Streaming](docs/MARKDOWN_STREAMING.md)
|
|
51
|
+
- [Usage](../../docs/TEXT.md#usage)
|
|
52
|
+
- [Supported Markdown Elements](../../docs/TEXT.md#supported-markdown-elements)
|
|
53
|
+
- [Copy Options](../../docs/TEXT.md#copy-options)
|
|
54
|
+
- [Accessibility](../../docs/TEXT.md#accessibility)
|
|
55
|
+
- [RTL Support](../../docs/TEXT.md#rtl-support)
|
|
56
|
+
- [Customizing Styles](../../docs/TEXT.md#customizing-styles)
|
|
57
|
+
- [LaTeX Math](../../docs/LATEX_MATH.md)
|
|
58
|
+
- [Image Caching](../../docs/IMAGE_CACHING.md)
|
|
59
|
+
- [Markdown Streaming](../../docs/MARKDOWN_STREAMING.md)
|
|
60
60
|
- [EnrichedMarkdownTextInput](#enrichedmarkdowntextinput-1)
|
|
61
|
-
- [Usage](docs/INPUT.md#usage)
|
|
62
|
-
- [Inline Styles](docs/INPUT.md#inline-styles)
|
|
63
|
-
- [Links](docs/INPUT.md#links)
|
|
64
|
-
- [Auto-Link Detection](docs/INPUT.md#auto-link-detection)
|
|
65
|
-
- [Mentions](docs/MENTIONS.md)
|
|
66
|
-
- [Style Detection](docs/INPUT.md#style-detection)
|
|
67
|
-
- [Other Events](docs/INPUT.md#other-events)
|
|
68
|
-
- [Customizing Styles](docs/INPUT.md#customizing-enrichedmarkdowntextinput--styles)
|
|
61
|
+
- [Usage](../../docs/INPUT.md#usage)
|
|
62
|
+
- [Inline Styles](../../docs/INPUT.md#inline-styles)
|
|
63
|
+
- [Links](../../docs/INPUT.md#links)
|
|
64
|
+
- [Auto-Link Detection](../../docs/INPUT.md#auto-link-detection)
|
|
65
|
+
- [Mentions](../../docs/MENTIONS.md)
|
|
66
|
+
- [Style Detection](../../docs/INPUT.md#style-detection)
|
|
67
|
+
- [Other Events](../../docs/INPUT.md#other-events)
|
|
68
|
+
- [Customizing Styles](../../docs/INPUT.md#customizing-enrichedmarkdowntextinput--styles)
|
|
69
69
|
- [API Reference](#api-reference)
|
|
70
|
-
- [Testing with Jest](docs/TESTING.md)
|
|
71
|
-
- [Web Support](docs/WEB.md)
|
|
72
|
-
- [macOS Support](docs/MACOS.md)
|
|
70
|
+
- [Testing with Jest](../../docs/TESTING.md)
|
|
71
|
+
- [Web Support](../../docs/WEB.md)
|
|
72
|
+
- [macOS Support](../../docs/MACOS.md)
|
|
73
73
|
- [Compatibility Table](#compatibility-table)
|
|
74
74
|
- [Contributing](#contributing)
|
|
75
75
|
- [Future Plans](#future-plans)
|
|
@@ -102,7 +102,7 @@ npm install katex
|
|
|
102
102
|
yarn add katex
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
See [Web Support](docs/WEB.md) for full setup details, supported features, and prop behaviour.
|
|
105
|
+
See [Web Support](../../docs/WEB.md) for full setup details, supported features, and prop behaviour.
|
|
106
106
|
|
|
107
107
|
### Bare React Native app (iOS / Android)
|
|
108
108
|
|
|
@@ -126,9 +126,9 @@ yarn add react-native-enriched-markdown
|
|
|
126
126
|
> and iOS LaTeX math (kept out of the npm tarball to keep it ~1 MB). This needs network access to
|
|
127
127
|
> `registry.npmjs.org` and `github.com`. If you install offline, with `--ignore-scripts`, or with
|
|
128
128
|
> **pnpm** (which blocks dependency scripts by default), see
|
|
129
|
-
> [Native assets](docs/NATIVE_ASSETS.md) for how to restore them. If you don't use a feature, skip
|
|
129
|
+
> [Native assets](../../docs/NATIVE_ASSETS.md) for how to restore them. If you don't use a feature, skip
|
|
130
130
|
> its download with an `"enriched-markdown": { "enableCodeHighlight": false, "enableMath": false }`
|
|
131
|
-
> block in your app's `package.json` — see [Skipping the download](docs/NATIVE_ASSETS.md#skipping-the-download-opt-out).
|
|
131
|
+
> block in your app's `package.json` — see [Skipping the download](../../docs/NATIVE_ASSETS.md#skipping-the-download-opt-out).
|
|
132
132
|
|
|
133
133
|
#### 2. Install iOS / macOS dependencies
|
|
134
134
|
|
|
@@ -163,7 +163,7 @@ npx expo prebuild
|
|
|
163
163
|
|
|
164
164
|
> [!NOTE]
|
|
165
165
|
> `npx expo install` runs the same `postinstall` asset download described under
|
|
166
|
-
> [Native assets](docs/NATIVE_ASSETS.md); it needs network access and does not work with Yarn PnP.
|
|
166
|
+
> [Native assets](../../docs/NATIVE_ASSETS.md); it needs network access and does not work with Yarn PnP.
|
|
167
167
|
|
|
168
168
|
> [!IMPORTANT]
|
|
169
169
|
> **iOS: Save to Camera Roll**
|
|
@@ -177,23 +177,23 @@ npx expo prebuild
|
|
|
177
177
|
|
|
178
178
|
## EnrichedMarkdownText
|
|
179
179
|
|
|
180
|
-
See [EnrichedMarkdownText](docs/TEXT.md) for detailed documentation on usage examples, GFM tables, task lists, link handling, supported elements, copy options, accessibility, RTL support, and customizing styles. Mentions created by `EnrichedMarkdownTextInput` render as styled links — use [`linkVariants`](docs/MENTIONS.md#link-variants-styling) to customize their appearance.
|
|
180
|
+
See [EnrichedMarkdownText](../../docs/TEXT.md) for detailed documentation on usage examples, GFM tables, task lists, link handling, supported elements, copy options, accessibility, RTL support, and customizing styles. Mentions created by `EnrichedMarkdownTextInput` render as styled links — use [`linkVariants`](../../docs/MENTIONS.md#link-variants-styling) to customize their appearance.
|
|
181
181
|
|
|
182
182
|
## EnrichedMarkdownTextInput
|
|
183
183
|
|
|
184
|
-
See [EnrichedMarkdownTextInput](docs/INPUT.md) for detailed documentation on usage examples, inline styles, links, style detection, events, and customizing styles.
|
|
184
|
+
See [EnrichedMarkdownTextInput](../../docs/INPUT.md) for detailed documentation on usage examples, inline styles, links, style detection, events, and customizing styles.
|
|
185
185
|
|
|
186
186
|
## API Reference
|
|
187
187
|
|
|
188
|
-
See the [API Reference](docs/API_REFERENCE.md) for a detailed overview of all the props, methods, and events available.
|
|
188
|
+
See the [API Reference](../../docs/API_REFERENCE.md) for a detailed overview of all the props, methods, and events available.
|
|
189
189
|
|
|
190
190
|
## Web Support
|
|
191
191
|
|
|
192
|
-
See [Web Support](docs/WEB.md) for details on supported features, web-specific prop behaviour, and known limitations.
|
|
192
|
+
See [Web Support](../../docs/WEB.md) for details on supported features, web-specific prop behaviour, and known limitations.
|
|
193
193
|
|
|
194
194
|
## macOS Support
|
|
195
195
|
|
|
196
|
-
`react-native-enriched-markdown` supports macOS via [react-native-macos](https://github.com/microsoft/react-native-macos). See [macOS Support](docs/MACOS.md) for details on macOS-specific features, known limitations, and the example app.
|
|
196
|
+
`react-native-enriched-markdown` supports macOS via [react-native-macos](https://github.com/microsoft/react-native-macos). See [macOS Support](../../docs/MACOS.md) for details on macOS-specific features, known limitations, and the example app.
|
|
197
197
|
|
|
198
198
|
## Future Plans
|
|
199
199
|
|
|
@@ -218,11 +218,11 @@ We're actively working on expanding the capabilities of `react-native-enriched-m
|
|
|
218
218
|
|
|
219
219
|
## Contributing
|
|
220
220
|
|
|
221
|
-
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
|
|
221
|
+
See the [contributing guide](../../CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
|
|
222
222
|
|
|
223
223
|
## License
|
|
224
224
|
|
|
225
|
-
`react-native-enriched-markdown` library is licensed under [The MIT License](
|
|
225
|
+
`react-native-enriched-markdown` library is licensed under [The MIT License](../../LICENSE).
|
|
226
226
|
|
|
227
227
|
---
|
|
228
228
|
|
|
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
|
|
|
19
19
|
s.authors = package["author"]
|
|
20
20
|
|
|
21
21
|
s.platforms = { :ios => min_ios_version_supported, :osx => '14.0' }
|
|
22
|
-
s.source = { :git => "https://github.com/software-mansion/
|
|
22
|
+
s.source = { :git => "https://github.com/software-mansion/enriched-markdown.git", :tag => "#{s.version}" }
|
|
23
23
|
|
|
24
24
|
if monorepo
|
|
25
25
|
s.private_header_files = "ios/**/*.h"
|
|
@@ -19,7 +19,7 @@ import kotlin.math.abs
|
|
|
19
19
|
* Must never mutate the buffer's Selection spans — the platform Editor
|
|
20
20
|
* manages them during long-press gestures, and removing or overwriting
|
|
21
21
|
* them mid-gesture crashes on some OEM skins.
|
|
22
|
-
* See: https://github.com/software-mansion/
|
|
22
|
+
* See: https://github.com/software-mansion/enriched-markdown/issues/580
|
|
23
23
|
*/
|
|
24
24
|
class LinkLongPressMovementMethod : ArrowKeyMovementMethod() {
|
|
25
25
|
private val handler = Handler(Looper.getMainLooper())
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-enriched-markdown",
|
|
3
|
-
"version": "1.0
|
|
4
|
-
"description": "Markdown Text
|
|
3
|
+
"version": "1.1.0-nightly-20260815-afa9efb68",
|
|
4
|
+
"description": "Markdown-based Rich Text solution for React Native",
|
|
5
5
|
"main": "./lib/module/index",
|
|
6
6
|
"module": "./lib/module/index",
|
|
7
7
|
"source": "./src/index.tsx",
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
],
|
|
68
68
|
"repository": {
|
|
69
69
|
"type": "git",
|
|
70
|
-
"url": "git+https://github.com/software-mansion/
|
|
70
|
+
"url": "git+https://github.com/software-mansion/enriched-markdown.git",
|
|
71
71
|
"directory": "packages/react-native-enriched-markdown"
|
|
72
72
|
},
|
|
73
73
|
"author": "Gregory Moskaliuk <mosckalyuck@gmail.com> (https://github.com/hryhoriiK97)",
|
|
74
74
|
"license": "MIT",
|
|
75
75
|
"bugs": {
|
|
76
|
-
"url": "https://github.com/software-mansion/
|
|
76
|
+
"url": "https://github.com/software-mansion/enriched-markdown/issues"
|
|
77
77
|
},
|
|
78
78
|
"homepage": "https://enriched.swmansion.com/markdown",
|
|
79
79
|
"publishConfig": {
|