Coder Social home page Coder Social logo

Comments (5)

jaywcjlove avatar jaywcjlove commented on June 14, 2024

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

jaywcjlove avatar jaywcjlove commented on June 14, 2024

@jeud I've integrated this feature, and now I just need to set it up to meet your wishes.

from parcel-plugin-markdown-string.

jeud avatar jeud commented on June 14, 2024

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

jaywcjlove avatar jaywcjlove commented on June 14, 2024

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

jeud avatar jeud commented on June 14, 2024

@jaywcjlove thanks so much

from parcel-plugin-markdown-string.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.