-
Hi, when I insert a full-width space or Sample: https://github.com/k1350/remark_sample import { unified } from 'unified'
import remarkParse from 'remark-parse'
import remarkRehype from 'remark-rehype'
import rehypeStringify from 'rehype-stringify'
const text = `
foo
baz
foo
baz
foo
 baz
foo
baz
`;
async function main() {
const html = await unified()
.use(remarkParse)
.use(remarkRehype)
.use(rehypeStringify)
.process(text);
console.log(String(html));
}
main(); result <p>foo<br>
baz</p>
<p>foo<br>
baz</p>
<p>foo<br>
baz</p>
<p>foo<br>
baz</p> I have looked into CommonMark spec and tested this pattern at CommonMark official playground. I think a full-width space or I am not familiar with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
They are not deleted. They are still there. $ node example.js
<p>foo
baz</p>
<p>foo
baz</p>
<p>foo
baz</p>
<p>foo
baz</p>
|
Beta Was this translation helpful? Give feedback.
Released in 13.0.1.
Note that I’m currently going through a wave of majors, so it’ll take a bit for the code to end up in remark-rehype!