Skip to content

Commit 21211ec

Browse files
authored
corrected example in README.md
Changed parserOptions to options in the longest example.
1 parent 6e0b870 commit 21211ec

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
@@ -161,14 +161,14 @@ const options = {
161161

162162
if (attribs.id === 'main') {
163163
return (
164-
<h1 style={{ fontSize: 42 }}>{domToReact(children, parserOptions)}</h1>
164+
<h1 style={{ fontSize: 42 }}>{domToReact(children, options)}</h1>
165165
);
166166
}
167167

168168
if (attribs.class === 'prettify') {
169169
return (
170170
<span style={{ color: 'hotpink' }}>
171-
{domToReact(children, parserOptions)}
171+
{domToReact(children, options)}
172172
</span>
173173
);
174174
}

0 commit comments

Comments
 (0)