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
Here is a codesandbox illustrating problem. Basically serialize does not output what I expect.
I am using this markdown (basically same from README, but with an image):
# Heading one## Heading two### Heading three#### Heading four##### Heading five###### Heading six
Normal paragraph
_italic text_**bold text**~~strike through text~~[hyperlink](https://jackhanford.com)![kitten](http://placekitten.com/g/200/200)> A block quote.- bullet list item 1
- bullet list item 2
1. ordered list item 1
1. ordered list item 2
Here are my 2 functions:
import{unified}from'unified'importremarkSlate,{serialize}from'remark-slate'importremarkParsefrom'remark-parse'// turn AST into MDexportconstdeserialize=src=>{const{ result }=unified().use(remarkParse).use(remarkSlate).processSync(src)returnresult}// turn MD into ASTexport{serialize}
Here is a codesandbox illustrating problem. Basically serialize does not output what I expect.
I am using this markdown (basically same from README, but with an image):
Here are my 2 functions:
If I run this:
I get
for
serialized
. It's missing image and the formatting is wrong.and deserialized looks like this:
deserialize.json.zip
Versions:
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: