Comments (9)
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.
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.
Now that github is using CommonMark, do you still want to change the parser to something non-commonmark?
from react-markdown.
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.
Why not use https://www.npmjs.com/package/marked? It supports GFM since ages.
from react-markdown.
If plugins completed, is code coloring close in? π
from react-markdown.
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.
Hmm, the demo page says it implements GFM, which seems to oppose what this thread says - might be worth updating :)
from react-markdown.
We support remark parser plugins now and have some basic building blocks for ast plugins as well. Closing.
from react-markdown.
Related Issues (20)
- ERROR this.getData is not a function TypeError: this.getData is not a function HOT 4
- βERR_PNPM_NO_MATCHING_VERSIONβ No matching version found for html-url-attributes@^3.0.0 HOT 2
- Link URL getting encoded in react-markdown v9 HOT 12
- Package dependencies error: ./node_modules/mdast-util-to-hast/lib/index.js Module not found: Can't resolve 'devlop' HOT 7
- Bug on old safari(14.1.1) macos 11.4 HOT 2
- Unable to resolve "devlop" from "node_modules/react-markdown/lib/index.js HOT 10
- Classname is always `undefined` HOT 8
- request refactoring HOT 3
- Usage of `Object.hasOwn` breaks web pages on iPad OS (iPad Air, Safari & Chrome) HOT 6
- rehypeKatex with remarkMath is not working for latex math HOT 1
- Does not parse ordered list from markdown correctly, HOT 6
- Code highliting with react-syntax-highlighter bug HOT 7
- Unnecessarily narrow range for React peer deps HOT 7
- Support for inapp links HOT 5
- text not created as hyperlink HOT 6
- Possible inconsistency with handling emphasis and strong when immediately followed by emphasis HOT 3
- p component overriding img component HOT 4
- A 11k star makrdown widget can not have a copy button at code block?
- How render image in cneter? HOT 3
- rermarkgfm showing tasklist wrong HOT 21
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 react-markdown.