JS library to parse markdown and return HTML
Installation: Currently the library is not published anywhere. Follow these steps to install locally:
- Pull this repository
- Run
yarn build - Run
yarn pack- This will create a file calledrpf-markdown-core-v1.0.0.tgz - Copy this file into the repo you want to install at.
- Run
yarn install <path-to-tgz-file>to install in the target repo.
Current features:
- Code blocks formatted using prism JS
- projects site custom blocks like task, tip and debug
- scratchblocks
- Raspberry Flavoured Markdown as outlined in this spec
Example usage:
import { processEditorProject } from "rpf-markdown-core";
const exampleMarkdown = `# Hello World`;
// processEditorProject returns the HTML for the markdown passed into it.
const htmlOutput = processEditorProject(exampleMarkdown);- Create a new PR to bump the version in
package.json - Merge the PR
- Create a new Release with a new tag matching the version in
package.json - New version of package should be published automatically