Code Monkey home page Code Monkey logo

Comments (9)

rexxars avatar rexxars commented on May 26, 2024 7

Agreed, would make a good addition. I've been wanting to replace the parser with something non-commonmark for a while, which would make this easier. Don't currently have time to implement it, but thanks for the suggestion. Will see if I get around to it at some point.

from react-markdown.

riseremi avatar riseremi commented on May 26, 2024 1

Double this, it will be a super nice feature. I use react-markdown in my personal blog service and I want to show "cuts" in the markdown preview:

>Read more< ==> <a href="fullPostUrl">Read more</a>

If you have no time, maybe we can help you a bit? I'm not very experienced developer, but I'd like to help.

from react-markdown.

tauren avatar tauren commented on May 26, 2024

Now that github is using CommonMark, do you still want to change the parser to something non-commonmark?

from react-markdown.

rexxars avatar rexxars commented on May 26, 2024

The commonmark parser we're using still doesn't support Github Flavored Markdown, even if Github Flavored Markdown is now based on it. If the commonmark parser supported GFM, I might reconsider, but I'm still thinking of switching.

from react-markdown.

pke avatar pke commented on May 26, 2024

Why not use https://www.npmjs.com/package/marked? It supports GFM since ages.

from react-markdown.

CyanGlory avatar CyanGlory commented on May 26, 2024

If plugins completed, is code coloring close in? πŸ˜†

from react-markdown.

MartinWebDev avatar MartinWebDev commented on May 26, 2024

Bumping for interest. I am using this package for a travel blog for me and the mrs and want to use markdown to make it easier for her to edit without writing actual html. I want to have different colours styles for when either me, or her, write something. For now I added a custom renderer for the inline code tag which takes: J:Hello and treats the J (or other letter) as the initial for our names and then add the appropriate react component to achieve the style I want. While this works, it's obviously not ideal, so some sort of plugin system would be fantastic.

from react-markdown.

jasiekmiko avatar jasiekmiko commented on May 26, 2024

Hmm, the demo page says it implements GFM, which seems to oppose what this thread says - might be worth updating :)

from react-markdown.

rexxars avatar rexxars commented on May 26, 2024

We support remark parser plugins now and have some basic building blocks for ast plugins as well. Closing.

from react-markdown.

Related Issues (20)

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.