Less-than or greater-than sign in text
See original GitHub issueIt appears that you can’t currently use <
or >
characters in text.
For example, this markdown:
# Hello, MDX
I <3 Markdown and JSX
Produces this JSX:
export default ({components}) => <MDXTag name="wrapper"><MDXTag name="h1" components={components}>Hello, MDX</MDXTag>
<MDXTag name="p" components={components}> I <3 Markdown and JSX</MDXTag></MDXTag>
Which fails to compile in babel.
MDXC compiles this the following way:
export default function({ factories={} }) {
const {
h1 = createFactory('h1'),
p = createFactory('p'),
wrapper = createFactory('div'),
} = factories
return wrapper({},
h1({"id": "Hello-MDX"},
"Hello, MDX",
),
p({},
"I <3 Markdown and JSX",
)
)
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
⋘ ≮ ≲ ≰ ⥷ Less Than Symbols - Alt Codes
List of Less Than symbols with html entity, unicode number code. Learn how to make over 43 Less Than symbols of math, copy...
Read more >punctuation - Why do the less than symbol (<) and the greater ...
When typing < or > in LaTeX and compiling with pdflatex , the less than and greater than symbols appear at upside down...
Read more >Less than and greater than symbols - LaTeX-Tutorial.com
In mathematics, the less than and greater than signs denote an inequality between two values. These signs are easily typeset in LaTeX using...
Read more >Why do people do ">>>>>" when saying "greater than ... - Reddit
It's saying that X is greater than (>) Y. For example: say someone tweets "The Wire>>>Breaking Bad". They're saying that The Wire is...
Read more >If you use the less than (<) or greater than (>) signs in your text ...
If you use the less than (<) or greater than (>) signs in your text, the browser might mix them with tags. My...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m going to fix this once and for all in a bit 👍 We just need to turn text nodes into
And then escape backticks. Exactly the same as
code
/inlineCode
works right now.Hi, I’m experiencing this again.
I’m using @mdx-js/loader@1.6.22