Comments (7)
Yuck, looking into this. Thanks for reporting.
from markdown-to-jsx.
Fix is out in 6.6.6
thanks! https://github.com/probablyup/markdown-to-jsx/releases/tag/6.6.6
from markdown-to-jsx.
Thanks so much, it fixes the first issue but it doesn't fix the second issue.
When there is
<Markdown>{'1<a or 2>1'}</Markdown>
It will be output as
11
Any ideas?
from markdown-to-jsx.
That one is more difficult to solve; will have to think more on it.
The problem is it is being detected as an <a>
tag and then probably thrown out on render since the syntax is invalid, resulting in 11
. We don't validate individual attribute groups at HTML detection time or do any enforcement of self-closing vs normal html syntax to save on library size (would introduce a fair amount of code.)
from markdown-to-jsx.
Maybe allow
> <
to be displayed correctly.
At the moment if you pass <Markdown>{'>'}</Markdown>
then >
will be shown.
If you parsed those and displayed as > < then you wouldn't need to worry about this.
from markdown-to-jsx.
from markdown-to-jsx.
Thanks, I completely understand your reasoning.
Maybe its my understanding, but >
gets displayed correctly by the browser as >
But when its inside the browser doesn't render it correctly.
I've worked around it by putting spaces around < or > as there shouldn't be any HTML in my input, just curious as to why when I pass in > it doesn't get shown correctly.
from markdown-to-jsx.
Related Issues (20)
- Bug Rending <div><div><div> </div></div></div> HOT 1
- Passing markdown as prop for React component not working without extra const HOT 4
- Markdown line that starts with <u> html tag has inconsistent behavior
- Bug when rendering ![][] HOT 1
- Base64 encoded images saved as a data url slows down parsing a lot.
- Falsy rendering code block in a code block HOT 1
- Bug: Error when the content of the link is an image marker HOT 2
- Bug: Component's name that's a prefix of another can't be nested HOT 2
- Bug : image Links ex) [![](http://example.com/link.png)](http://example.com) HOT 3
- [FEAT] Add support for GFM Alerts HOT 4
- Custom override closing tags rendered in Firefox HOT 13
- I want to be able to return HTML strings directly HOT 1
- Cannot access ambient const enums when 'isolatedModules' is enabled. HOT 1
- Cannot render tag if formatted in a certain way. HOT 3
- Supply original string for special case processing HOT 2
- <blockquote> rendering is broken in Firefox after v7.4.0 HOT 2
- Version 7.4.1 has a strange consol.log in index.cjs and index.umd.js - console.log("AHHHHHHHH") HOT 4
- Slow Regex HTML_BLOCK_ELEMENT_R because of issue with self closing tags HOT 5
- Mutli-line bold/italic text not rendering correctly HOT 1
- Support multiline footnotes
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 markdown-to-jsx.