useMarked() hook
A react hook for parsing markdown with marked and sanitize-html
Live Demo
The app located at /example
demonstrates how it could be used, see the live result at https://this-fifo.github.io/use-marked-hook/
Install
yarn add use-marked-hook
Usage
import React from "react";import useMarked from "use-marked-hook"; const App = const markdown = `**bold content**`; const html = ; // html -> <p></strong>bold content</strong></p> return <div = />;;
License
MIT © Filipe Herculano