You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is a 100% compatible CommonMark renderer, a react-native markdown renderer done right. This is __not__
4
4
a web-view markdown renderer but a renderer that uses native components for all its elements. These components can be overwritten when needed as seen in the examples.
5
5
6
-
To give a summary of the supported syntax react-native-markdown-renderer supports.
6
+
### Future releases
7
+
##### v2.1.0
8
+
- We are going to switch to a type based rule system instead of a html tags. Rules are currently
9
+
based off html tags "a,h1,h2,h3,h4,ul,li etc." this will change to "anchor, heading1, bullet_list, bullet_list_item"
10
+
This makes it a lot easier to add extra syntax features through plugins.
@@ -20,21 +35,45 @@ To give a summary of the supported syntax react-native-markdown-renderer support
20
35
- Syntax highlighting
21
36
- Links
22
37
- Images
23
-
- Plugins for extra syntax support, [see plugins](https://www.npmjs.com/browse/keyword/markdown-it-plugin). Because this markdown-renderer uses markdown-it as its base it also supports all its plugins and subsequent extra language support.
38
+
- Plugins for **extra** syntax support, [see plugins](https://www.npmjs.com/browse/keyword/markdown-it-plugin).
39
+
Because this markdown-renderer uses markdown-it as its base it also supports all its plugins and
40
+
subsequent extra language support.
41
+
42
+
### Plugins, Extending Markdown (common mark A+) language support
43
+
This renderer, supports the ability extend the current CommonMark A+ spec.
44
+
45
+
For example:
24
46
47
+
- checkboxes: [] Not Checked [x] Checked https://www.npmjs.com/package/markdown-it-checkbox
48
+
- Video Embeds: ```@[youtube](dQw4w9WgXcQ)```https://www.npmjs.com/package/markdown-it-video
49
+
50
+
And a lot more, the list of community created plugins to extends the language are endless. But be
51
+
**carefull** add a plugin is easy, creating a rule for it is not. Currently the astRenderer and rules
52
+
are based off html tags. This makes it especially hard when adding stuff like checkbox or Video Embeds
53
+
that are grouped under input, label and a tag.
25
54
26
-
### tested on:
55
+
**Version 2.1.0** will switch this around and move the rules from tags to type. So a ```* list``` was a "li"
56
+
in the rules becomes a "bullet_list_item".
57
+
58
+
Checkbox was a "input" with no wrapper and will now move to "checkbox". This change will help to make support
0 commit comments