markdown-service
v0.1.2
Published
## 馃殌 Installation
Downloads
17
Readme
markdown-service 路
馃殌 Installation
npm install markdown-service
馃 How to use?
import markdownService from "markdown-service";
const markdown = await markdownService("//domain.com/awesome-readme.md");
鈿欙笍 Format support
Front matter ---
YAML can be used at the top of Markdown documents to add more structured data.
Surround the YAML with two lines of consecutive dashes.
---
name: "The shadow of the wind"
author: "Carlos Ruiz Zaf贸n"
---
_Daniel_, welcome to the cemetery of forgotten books.
const markdown = await markdownService("//domain.com/markdown.md");
/*
{
head: {
name: "The shadow of the wind",
author: 'Carlos Ruiz Zaf贸n',
},
content: '<strong>Daniel</strong>, welcome to the cemetery of forgotten books.'
}
*/