All Projects → jaywcjlove → parcel-plugin-markdown-string

jaywcjlove / parcel-plugin-markdown-string

Licence: MIT license
📦@parcel-bundler plugin for loader markdown string, markdown output HTML.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to parcel-plugin-markdown-string

parcel-plugin-externals
Parcel plugin for declaring externals. These externals will not be bundled. 📦
Stars: ✭ 47 (+147.37%)
Mutual labels:  parcel-bundler, parcel-plugin
react-app-boilerplate-2018
Bootstrap for a React App with Redux, React Router, Styled Components, Jest and Hot Reloading,
Stars: ✭ 20 (+5.26%)
Mutual labels:  parceljs, parcel-bundler
electron-react-parcel-boilerplate
Boilerplate code to create basic, production ready Electron app using React, Parcel application bundler.
Stars: ✭ 48 (+152.63%)
Mutual labels:  parceljs, parcel-bundler
svelte-box
A truffle box for svelte
Stars: ✭ 60 (+215.79%)
Mutual labels:  parceljs, parcel-bundler
parcel-static-template
Start a simple static site with components and hot reloading.
Stars: ✭ 20 (+5.26%)
Mutual labels:  parceljs, parcel-bundler
Metalsmith
An extremely simple, pluggable static site generator.
Stars: ✭ 7,692 (+40384.21%)
Mutual labels:  markdown-to-html
Lowdown
simple markdown translator
Stars: ✭ 153 (+705.26%)
Mutual labels:  markdown-to-html
Markitdown
📱 A React app to preview and edit Markdown✍. You can also export it as HTML.
Stars: ✭ 26 (+36.84%)
Mutual labels:  markdown-to-html
Docpress
Documentation website generator
Stars: ✭ 815 (+4189.47%)
Mutual labels:  markdown-to-html
react-redux-boilerplate
A React boilerplate based on Redux, React Router, styled components and Parcel
Stars: ✭ 62 (+226.32%)
Mutual labels:  parcel-bundler
Flexmark Java
CommonMark/Markdown Java parser with source level AST. CommonMark 0.28, emulation of: pegdown, kramdown, markdown.pl, MultiMarkdown. With HTML to MD, MD to PDF, MD to DOCX conversion modules.
Stars: ✭ 1,673 (+8705.26%)
Mutual labels:  markdown-to-html
Markdeck
presentations as code - author cool slide decks, text-only, offline-ready, collaborative
Stars: ✭ 1,159 (+6000%)
Mutual labels:  markdown-to-html
Markdown
📖Clean & Modern MarkDown Generator, 🔌Offline Support and Easy Generation of Markdown ⚡️⚛️ https://github.com/JP1016/Markdown-Electron/releases
Stars: ✭ 170 (+794.74%)
Mutual labels:  markdown-to-html
Markdown
A super fast, highly extensible markdown parser for PHP
Stars: ✭ 945 (+4873.68%)
Mutual labels:  markdown-to-html
productive-cycles-webext
Simple-yet-complete Pomodoro timer for Firefox and Google Chrome. Built with the WebExtensions API and React.
Stars: ✭ 17 (-10.53%)
Mutual labels:  parcel-bundler
Easy Pandoc Templates
A collection of portable pandoc templates with no dependencies
Stars: ✭ 23 (+21.05%)
Mutual labels:  markdown-to-html
Markvis
make visualization in markdown. 📊📈
Stars: ✭ 1,509 (+7842.11%)
Mutual labels:  markdown-to-html
Markdown
A Python implementation of John Gruber’s Markdown with Extension support.
Stars: ✭ 2,725 (+14242.11%)
Mutual labels:  markdown-to-html
Reversemarkdown Net
ReverseMarkdown.Net is a Html to Markdown converter library in C#. Conversion is very reliable since HtmlAgilityPack (HAP) library is used for traversing the Html DOM
Stars: ✭ 116 (+510.53%)
Mutual labels:  markdown-to-html
Docpht
With DocPHT you can take notes and quickly document anything and without the use of any database.
Stars: ✭ 90 (+373.68%)
Mutual labels:  markdown-to-html

parcel-transformer-markdown

NPM Downloads Build & Deploy parcel-transformer-markdown version parcel-plugin-markdown-string version

Parcel 2 plugin for loader markdown string, markdown output HTML.

⚠️ parcel-plugin-markdown-string => parcel-transformer-markdown

- parcel-plugin-markdown-string 
+ parcel-transformer-markdown

Example usage

Install the plugin

npm install parcel-transformer-markdown --save-dev

.parcelrc

{
  "extends": "@parcel/config-default",
  "transformers": {
    "*.md": [ "parcel-transformer-markdown" ]
  }
}

index.html:

<!DOCTYPE html>
<div id="root"></div>
<script type="module" src="index.js"></script>

Output HTML string

Import your markdown files! Output HTML string.

import HTMLStr from './Markdown.md';

console.log(HTMLStr) // => Output HTML string.
document.body.innerHTML = HTMLStr;

Output Markdown string

// .markedrc
{
  "marked": false
}
import str from './Markdown.md';

console.log(str) // => Output Markdown string.
document.body.innerHTML = str;

Configuration

Marked can be configured using a .markedrc, .markedrc.js, or marked.config.js file. See the Marked API Reference for details on the available options.

Note: .markedrc.js and marked.config.js are supported for JavaScript-based configuration, but should be avoided when possible because they reduce the effectiveness of Parcel's caching. Use a JSON based configuration format (e.g. .markedrc) instead.

There is a marked configuration that converts markdown to HTML. Otherwise just read the markdown string.

{
  "marked": {
    "breaks": true,
    "pedantic": false,
    "gfm": true,
    "tables": true,
    "sanitize": false,
    "smartLists": true,
    "smartypants": false,
    "xhtml": false
  }
}

Contributors

As always, thanks to our amazing contributors!

Made with github-action-contributors.

License

MIT © Kenny Wong

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].