Skip to content

Commit b49ee28

Browse files
Merge pull request #123 from dbvisel/patch-1
docs(readme): fix variable name in code block example Change `parserOptions` to `options` Fixes #122
2 parents 6e0b870 + 21211ec commit b49ee28

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)