Skip to content

Commit 206e25f

Browse files
docs: correct remark to rehype options example
1 parent ea5a79b commit 206e25f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ import rehypeAutoLinkHeadings from 'rehype-autolink-headings';
173173

174174
const [reactContent, setMarkdownSource] = useRemark({
175175
remarkPlugins: [remarkGemoji],
176-
remarkToRehypeOptions: { allowDangerous: true },
176+
remarkToRehypeOptions: { allowDangerousHtml: true },
177177
rehypePlugins: [rehypeSlug, rehypeAutoLinkHeadings],
178178
rehypeReactOptions: {
179179
components: {
@@ -196,7 +196,7 @@ import rehypeAutoLinkHeadings from 'rehype-autolink-headings';
196196

197197
<Remark
198198
remarkPlugins={[remarkGemoji]}
199-
remarkToRehypeOptions={{ allowDangerous: true }}
199+
remarkToRehypeOptions={{ allowDangerousHtml: true }}
200200
rehypePlugins={[rehypeSlug, rehypeAutoLinkHeadings]}
201201
rehypeReactOptions={{
202202
components: {

0 commit comments

Comments
 (0)