Comments (21)
This issue contains no information and can't be acted upon.
from react-markdown.
@remcohaszing Can your lib render task list right???
from react-markdown.
Yes, you can see working example on the demo page https://remarkjs.github.io/react-markdown/
Take some time to frame your question (https://github.com/remarkjs/.github/blob/main/support.md#asking-quality-questions)
A runnable example of what you are trying inside a sandbox gives context on what you are trying to do in the code.
from react-markdown.
- fff
- rtgrt
Am not sure you guys like telling something that obviously wrong.
from react-markdown.
@OpenJarvisAI there is a GFM toggle on the demo page.
Toggle it on.
My best guess right now, is like on the demo site.
You ignored the step in the readme to switch GFM on https://github.com/remarkjs/react-markdown#use
If you want additional support, follow the guidance from my last message on how to frame a question and provide context. Stop wasting maintainer time by posting without actually trying anything.
from react-markdown.
I am a 10 years front-end developer, and I have set
<Markdown remarkPlugins={[remarkGfm]}>{markdown}</Markdown>
plugin on,not work
from react-markdown.
I am a 10 years front-end developer
Great, act like it then 🙂
<Markdown remarkPlugins={[remarkGfm]}>{markdown}</Markdown>
That doesn't answer my question, how are you running it?
There are millions of possible build tools.
Here is a minimal reproducible example showing it working with latest vite, react-markdown, and remark-gfm
https://stackblitz.com/edit/github-j5vjzd?file=package.json,src%2Fapp.tsx
Show a minimal reproducible example of what you are seeing.
from react-markdown.
@ChristianMurphy hi, am just using nextjs.
from react-markdown.
Oh, I looked it jusst like mine, the blaxk dot is can be invisiable?
- ddd
- ddd
look at github
from react-markdown.
am just using nextjs
There are 14 major versions of next and many possible build configurations, share a reproducible example so we can help you.
https://next.new could be a starter.
the black dot is can be invisible?
I don't understand what you are asking.
What black dot?
Broadly speaking you can style HTML to look like anything.
Check your style sheet to see how you are customizing the page appearance, you may be styling check lists to not appear.
Tailwind CSS is particularly well known to have styles which break markdown rendering by default.
from react-markdown.
@ChristianMurphy Can't u just look at the exaple you kindly prepared? Does they looks exact like github???
I just want the black dots disappear, it's very very very ugly!
from react-markdown.
@OpenJarvisAI that is how markdown works, it is specified in the standard. https://github.github.com/gfm/#task-list-items-extension-
Markdown does not specify the styles, that is completely up to you and your application.
If you want to style it exactly how GitHub does apply a stylesheet like https://github.com/sindresorhus/github-markdown-css or you can make your own https://www.w3schools.com/CSS/css_list.asp.
from react-markdown.
I have never (or very rare) see a markdown checklist have black dots before.
I am prefer just using people usually understand way, besides, I am already using gfm and you saying If you want to style it exactly how GitHub does
which I am very hard to understand.
Nevertheless, this is the very unique markdown default styling looks so abnormal.
How can I just applying the css linked above to my react & next13 project?
(Honestly, am not a frontend developer)
from react-markdown.
I have never (or very rare) see a markdown checklist have black dots before.
Because almost everyone applies a stylesheet to theme content to match their application.
Nevertheless, this is the very unique markdown default styling looks so abnormal.
That is how HTML looks 🤷
If you want it to look different style it.
How can I just applying the css linked above to my react & next13 project?
By following the Next JS guide on adding external stylesheets https://nextjs.org/docs/pages/building-your-application/styling/css-modules#import-styles-from-node_modules
from react-markdown.
well, why not add right css as default?
from react-markdown.
There is no "right" CSS.
Every application can have its own look and feel, it is a non-goal for react-markdown
to dictate how your app should look.
Broadly speaking, remarkjs
and react-markdown
follow a variation on the Unix Philosophy.
- Write programs that do one thing and do it well.
- Write programs to work together.
- Write programs to handle Syntax Trees, because that is a universal interface.
react-markdown
renders CommonMark to plain React components (hyperscript).
There are plenty of extension points to add other syntax, components, and style attributes.
You are welcome to create a component/module/plugin which has the look and feel that you want for your app and to share it with others.
from react-markdown.
I get it if you saying unix style. Make something just work nothing more, I agree.
But, as for an UI, can just make some default options or, at least, write some default configs users can do with it?
Rather than give me some render result with list of task box start with ugly dots.
from react-markdown.
I sitll don't know , how to set css in it.
from react-markdown.
When it comes to web development, React is quite advanced. I suggest you start with a tutorial to understand the basics of HTML, then work up to CSS, then JavaScript, then React. A good starting point would be https://www.w3schools.com/html/default.asp.
from react-markdown.
OK, so if I have to set all
from react-markdown.
Please take some time to learn markdown and CSS. You write markdown here on GH, that <li>
gets interpreted. And for the CSS, learn how to write good CSS and do everything you want.
Locking this. This is not free customer service.
from react-markdown.
Related Issues (20)
- 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
- \n Doesn't work properly HOT 8
- Tables do not display correctly when they have spaces at the beginning (remark-gfm) HOT 2
- Code is wrapped in an exrea <pre> even with a custom component HOT 9
- Custom Components Always Re-rendered HOT 4
- Not compatible to Chrome 90 or older HOT 9
- How to append content ,not cover? HOT 2
- When using two **enclosed bold texts containing colons, react-markdown fails to correctly parse the bold syntax. HOT 3
- Please add syntax for `{.tabset} ` HOT 2
- Typescript error while using syntax hightlight part code from README.md HOT 4
- sup element rendering with remark-gfm plugin is painfully slow. HOT 7
- React 18.3.0/19.0.0 support for react-markdown ^6.0.0 HOT 2
- React-markdown isn't rendering phone number links anymore HOT 3
- rst support HOT 2
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.