Comments (5)
@jeud Markdown
to HTML
to give better tools Marked
import mdStr from './index.md'
import myMarked from 'marked'
// Set options
// `highlight` example uses `highlight.js`
myMarked.setOptions({
renderer: new myMarked.Renderer(),
highlight: function(code) {
return require('highlight.js').highlightAuto(code).value;
},
pedantic: false,
gfm: true,
tables: true,
breaks: false,
sanitize: false,
smartLists: true,
smartypants: false,
xhtml: false
});
console.log(mdStr)
console.log(myMarked(mdStr));
You can choose from a variety of markdown
to html
tools
from parcel-plugin-markdown-string.
@jeud I've integrated this feature, and now I just need to set it up to meet your wishes.
from parcel-plugin-markdown-string.
@jaywcjlove , thanks for the new feature you just added
by the way, before adding the markdown to html feature, what was the purpose of parcel-plugin-markdown-string
, was it just about reading the markdown file? if so I'm so sorry to bother with this issue, I thought it was able to parse from markdown to html too
thanks
from parcel-plugin-markdown-string.
@jeud Do this, you can handle it with different tools.
E.g.: Markdownd editors need to preview the source Markdownd code.
from parcel-plugin-markdown-string.
@jaywcjlove thanks so much
from parcel-plugin-markdown-string.
Related Issues (7)
- not importing content of .md files as strings HOT 6
- Dependency Dashboard
- following README for getting HTML string didn't work for me HOT 4
- Markdown with JS code block breaks with template literal interpolation HOT 1
- Doesn't work with node on Windows because of process.env.PWD HOT 1
- Support parcel v2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parcel-plugin-markdown-string.