All Projects → stiang → Remove Markdown

stiang / Remove Markdown

Licence: mit
Strip Markdown stuff from text

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Remove Markdown

Qimage Win
Windows 版本 Markdown 一键贴图工具,支持本地文件、截图、网络图片一键上传七牛云并返回图片引用,让 Markdown 中贴图变成一种享受。
Stars: ✭ 196 (-4.85%)
Mutual labels:  markdown
Mark
A markdown processor written in Go. built for fun.
Stars: ✭ 200 (-2.91%)
Mutual labels:  markdown
Symphony
🎶 一款用 Java 实现的现代化社区(论坛/BBS/社交网络/博客)平台。
Stars: ✭ 13,080 (+6249.51%)
Mutual labels:  markdown
Database
EhTagTranslation 项目的翻译数据。
Stars: ✭ 197 (-4.37%)
Mutual labels:  markdown
Bullets.vim
🔫 Bullets.vim is a Vim/NeoVim plugin for automated bullet lists.
Stars: ✭ 199 (-3.4%)
Mutual labels:  markdown
Portfolioexamples
(Resource List) - Portolio sites for inspiration and comparison
Stars: ✭ 201 (-2.43%)
Mutual labels:  markdown
Diagon
Interactive ASCII art diagram generators. 🌟
Stars: ✭ 189 (-8.25%)
Mutual labels:  markdown
Kobito Oss
Markdown Processor built on Electron based on kobito-for-windows
Stars: ✭ 205 (-0.49%)
Mutual labels:  markdown
Markdown Link Check
checks that all of the hyperlinks in a markdown text to determine if they are alive or dead
Stars: ✭ 198 (-3.88%)
Mutual labels:  markdown
Codebraid
Live code in Pandoc Markdown
Stars: ✭ 204 (-0.97%)
Mutual labels:  markdown
Evernote2md
Convert Evernote .enex files to Markdown
Stars: ✭ 193 (-6.31%)
Mutual labels:  markdown
Swagger2markup
A Swagger to AsciiDoc or Markdown converter to simplify the generation of an up-to-date RESTful API documentation by combining documentation that’s been hand-written with auto-generated API documentation.
Stars: ✭ 2,330 (+1031.07%)
Mutual labels:  markdown
Reveal Ck
Create slides with ruby (and usually in markdown)
Stars: ✭ 202 (-1.94%)
Mutual labels:  markdown
Hercule
♻️ Simple document transclusion, ideal for Markdown documents
Stars: ✭ 196 (-4.85%)
Mutual labels:  markdown
Solo
🎸 一款小而美的博客系统,专为程序员设计。
Stars: ✭ 13,245 (+6329.61%)
Mutual labels:  markdown
Markdown Pdf
📄 Markdown to PDF converter
Stars: ✭ 2,365 (+1048.06%)
Mutual labels:  markdown
Jekyll Spaceship
🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
Stars: ✭ 196 (-4.85%)
Mutual labels:  markdown
Scroll
Static publishing software with a newspaper feel built on Tree Notation. Scroll is public domain software.
Stars: ✭ 206 (+0%)
Mutual labels:  markdown
Parsedown
Better Markdown Parser in PHP
Stars: ✭ 13,959 (+6676.21%)
Mutual labels:  markdown
Vditor
♏ 一款浏览器端的 Markdown 编辑器,支持所见即所得(富文本)、即时渲染(类似 Typora)和分屏预览模式。An In-browser Markdown editor, support WYSIWYG (Rich Text), Instant Rendering (Typora-like) and Split View modes.
Stars: ✭ 3,773 (+1731.55%)
Mutual labels:  markdown

CircleCI

What is it?

remove-markdown is a node.js module that will remove (strip) Markdown formatting from text. Markdown formatting means pretty much anything that doesn’t look like regular text, like square brackets, asterisks etc.

When do I need it?

The typical use case is to display an excerpt from some Markdown text, without any of the actual Markdown syntax - for example in a list of posts.

Installation

npm install remove-markdown

Usage

const removeMd = require('remove-markdown');
const markdown = '# This is a heading\n\nThis is a paragraph with [a link](http://www.disney.com/) in it.';
const plainText = removeMd(markdown); // plainText is now 'This is a heading\n\nThis is a paragraph with a link in it.'

You can also supply an options object to the function. Currently, the following options are supported:

const plainText = removeMd(markdown, {
  stripListLeaders: true , // strip list leaders (default: true)
  listUnicodeChar: '',     // char to insert instead of stripped list leaders (default: '')
  gfm: true                // support GitHub-Flavored Markdown (default: true)
  useImgAltText: true      // replace images with alt-text, if present (default: true)
});

Setting stripListLeaders to false will retain any list characters (*, -, +, (digit).).

TODO

PRs are very much welcome. Here are some ideas for future enhancements:

  • Allow the RegEx expressions to be customized per rule
  • Make the rules more robust, support more edge cases
  • Add more (comprehensive) tests

Credits

The code is based on Markdown Service Tools - Strip Markdown by Brett Terpstra.

Author

Stian Grytøyr

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].