Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @parked/core with all npm packages installed. Try it out:

var core = require("@parked/core")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@parked/core v1.0.0

A parser of Markdown

Parked

Parked is a parser of Markdown

Support

Syntax nameSyntax typeSupported
Annotated Link[linked text][example annotation]No
Blockquote> blockquoteNo
Bold**bold text**Yes
Code Block```code block```No
Headers# headerNo
Horizontal Rule---No
Image![alt text](https://example.com/image.png "title")No
Inline Code`inline code`No
Italic*italicized text*No
Ordered Lists1. list itemNo
Link[linked text](https://example.com)No
Strikethrough~~stricken text~~No
Unordered Lists1. list itemNo

Usage

Install the package:

npm install @parked/core

Import and use the rendering function in your code:

import { markdownToHTML } from '@parked/core'

const string = 'This is my string! The word **bold** should be **bold**!'

markdownToHTML(string) // returns 'This is my string! The word <strong>bold</strong> should be <strong>bold</strong>!'

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free