Skip to content

Converts markdown text to a single line without markdown syntax

License

Notifications You must be signed in to change notification settings

staltz/strip-markdown-oneline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strip-markdown-oneline

Given a markdown input as string, returns a string where all markdown syntax is removed, and no new lines exist.

Installation

npm install strip-markdown-oneline

Usage

Input

# Title

> blockquote

## Header 2

This is a link: [search engine](https://duckduckgo.com)

Function call

const stripMarkdownOneline = require('strip-markdown-oneline')

const output = stripMarkdownOneline(input);

console.log(output)

Output

Title blockquote Header 2 This is a link: search engine

License

MIT

About

Converts markdown text to a single line without markdown syntax

Resources

License

Stars

Watchers

Forks

Packages