1.0.0 • Published 4 years ago

@parked/core v1.0.0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
4 years ago

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>!'