Skip to content

Commit 087408f

Browse files
committed
Replace arrow function with a function expression
1 parent 089a5e7 commit 087408f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ export async function MarkdownAsync(options) {
213213
*/
214214
export function MarkdownHooks(options) {
215215
const processor = useMemo(
216-
() => createProcessor(options),
216+
function () {
217+
return createProcessor(options)
218+
},
217219
[options.rehypePlugins, options.remarkPlugins, options.remarkRehypeOptions]
218220
)
219221
const [error, setError] = useState(

0 commit comments

Comments
 (0)