Comments (2)
Thank you for loving marked 🥰
By default marked tries to follow GFM and CommonMark spec.
Bug 1
As you can see by the following example GitHub uses a single list for task and non-task items:
- item1
- item2
Changing this would mean markdown in marked wouldn't render like GitHub.
Bug 2
This follows CommonMark: demo
You can get this to work if you set the breaks
option to true
. That option will add a <br>
for every newline like GitHub comments.
styling
Marked renders html without styling or classes. It is up to the user to provide styling and ideally markdown should render semantic html simple enough to style without classes.
extensions
We have tried to make extending marked as easy as possible. Extensions are a way for users to opt-in to certain features instead of requiring everyone to download code they don't need/want. If you create an extension to add classes to task lists or separate task lists from non-task lists feel free to add it to the known extensions in our docs.
Thanks again!
from marked.
Thank you very much for your prompt response. Indeed, using semantic tags is better. I now understand your original intention, and I have gained a lot of valuable insights. I've also learned about creating custom renderers to implement CSS class names.
I sincerely thank you once again.
from marked.
Related Issues (20)
- Docusaurus + redocusaurus == The language "shell" has no grammar HOT 4
- Issues with various Markdown aspects HOT 2
- Improved TypeScript types for TokenizerAndRendererExtension HOT 2
- Nested pre-formatted text block are not handled properly HOT 2
- When both bold and normal fonts appear in a line of text, if there is no space after the bold double asterisk, it cannot be parsed normally. HOT 1
- Text rendered in h2 heading title HOT 3
- Link and tilde symbol parsing issues detected. HOT 1
- Unable to read titles HOT 3
- marked v12 with webpack 5.9x HOT 5
- Display Github permalink to a code snippet HOT 7
- Block level extension not rendering correctly HOT 2
- Emphasis cannot be rendered HOT 3
- could not resolve module HOT 4
- Support unordered lists with hyphens (-) in addition to asterisks (*) HOT 1
- problem when inserting a picture HOT 1
- Ignoring elements click prop on conversion HOT 1
- [Question] lexer - a `space` betwen two lists HOT 4
- Fail to parse image tag under specific input. HOT 2
- Feature request: footnotes HOT 1
- **xx** -> strong label, There is a problem 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 marked.