1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-22 15:02:51 +02:00
This commit is contained in:
Ian Storm Taylor
2019-05-01 19:52:39 -07:00
parent 4af9a8b345
commit 3453de7bbb

View File

@@ -14,7 +14,9 @@ This document maintains a list of changes to the `slate-hyperscript` package wit
```jsx ```jsx
<paragraph> <paragraph>
<b>a few <i>italic</i> and bold words.</b> <b>
a few <i>italic</i> and bold words.
</b>
</paragraph> </paragraph>
``` ```
@@ -23,14 +25,15 @@ Must now be written as:
```jsx ```jsx
<paragraph> <paragraph>
<b>a few </b> <b>a few </b>
<b><i>italic</i></b> <b>
<i>italic</i>
</b>
<b> and bold words.</b> <b> and bold words.</b>
</paragraph> </paragraph>
``` ```
Slightly more verbose, but with the benefit of being easy to tell exactly how many text nodes you will receive in your resulting document. And it allows setting `key=` values on the mark tags directly, since they map `1:1` to text nodes. Slightly more verbose, but with the benefit of being easy to tell exactly how many text nodes you will receive in your resulting document. And it allows setting `key=` values on the mark tags directly, since they map `1:1` to text nodes.
--- ---
### `0.11.0` — October 9, 2018 ### `0.11.0` — October 9, 2018