未验证 提交 8703f134 编写于 作者: A Aleksander 提交者: GitHub

Fix awaiting for sync method of remark in cms examples (#15555)

上级 c6429993
......@@ -2,6 +2,6 @@ import remark from 'remark'
import html from 'remark-html'
export default async function markdownToHtml(markdown) {
const result = await remark().use(html).processSync(markdown)
const result = await remark().use(html).process(markdown)
return result.toString()
}
......@@ -2,6 +2,6 @@ import remark from 'remark'
import html from 'remark-html'
export default async function markdownToHtml(markdown) {
const result = await remark().use(html).processSync(markdown)
const result = await remark().use(html).process(markdown)
return result.toString()
}
......@@ -2,6 +2,6 @@ import remark from 'remark'
import html from 'remark-html'
export default async function markdownToHtml(markdown) {
const result = await remark().use(html).processSync(markdown)
const result = await remark().use(html).process(markdown)
return result.toString()
}
......@@ -2,6 +2,6 @@ import remark from 'remark'
import html from 'remark-html'
export default async function markdownToHtml(markdown) {
const result = await remark().use(html).processSync(markdown)
const result = await remark().use(html).process(markdown)
return result.toString()
}
......@@ -2,6 +2,6 @@ import remark from 'remark'
import html from 'remark-html'
export default async function markdownToHtml(markdown) {
const result = await remark().use(html).processSync(markdown)
const result = await remark().use(html).process(markdown)
return result.toString()
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册