Comments (4)
I guess he is still busy with life.
from react-markdown.
Kind of forgot about this one.
The reason why this happens is because a blockquote can contain lots of things, not just text. Lists, sub-quotes and the like. It basically works the same way that text at the root of a markdown document works - it'll be wrapped in a paragraph.
You can see the AST for a markdown document by using this tool and click "AST" on the right. You could unwrap the children of your paragraph if you need to, using React.Children and the like.
from react-markdown.
Sorry for not responding earlier, I've been a bit busy with life.
I need some more info to understand this. How does your markdown source look, and what are you renderers doing?
from react-markdown.
Sorry for the delay. So in the renderer we render our own components instead of letting react-markdown doing it. Paragrah for example is rendered as a RunningText component and quote as BlockQuote component as seen above. But when the renderer looks at a quote it wraps the text with the RunningText component (associated to paragraph) and then with the BlockQuote component, instead of having the text as a direct child of the BlockQuote component.
from react-markdown.
Related Issues (20)
- 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
- Can't drag-over select text to copy a section HOT 3
- Headings and subheadings aren't getting rendered (NextJS 14/ChakraUI) HOT 3
- Invalid HTML syntax together with `rehype-raw` causes crash HOT 6
- Incorrect Languageless Code Block Rendering in Example HOT 12
- Identify `last-child` HOT 3
- Compatible with lower version browsers HOT 3
- TypeError: (0 , unist_util_visit__WEBPACK_IMPORTED_MODULE_1__.visit) is not a function HOT 3
- Syntex for showing underlined text HOT 3
- would it be avaliable for yarn HOT 2
- Support Automatic Link Detection and Hyperlinking HOT 4
- custom syntax and custom components are not working HOT 3
- github attached videos HOT 4
- Is it possible to prevent remounting of components (<ReactMarkdown components={...}>) when markdown changes? HOT 6
- Misidentify table contents HOT 4
- Unable to parse latex using rehypeKatex plugin HOT 7
- Can ReactMarkdown be used with react-lazy-load? 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.
tag when adding quote
from react-markdown.