Comments (1)
This is per upstream cmark
:
$ echo 'A***B*C*' | build/src/cmark -t xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document SYSTEM "CommonMark.dtd">
<document xmlns="http://commonmark.org/xml/1.0">
<paragraph>
<text xml:space="preserve">A*</text>
<emph>
<emph>
<text xml:space="preserve">B</text>
</emph>
<text xml:space="preserve">C</text>
</emph>
</paragraph>
</document>
$ echo 'A***B*C*' | build/src/cmark -t commonmark
A\***B*C*
$ echo 'A\***B*C*' | build/src/cmark -t xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document SYSTEM "CommonMark.dtd">
<document xmlns="http://commonmark.org/xml/1.0">
<paragraph>
<text xml:space="preserve">A***B</text>
<emph>
<text xml:space="preserve">C</text>
</emph>
</paragraph>
</document>
$
We should get this fixed upstream, and then copy the changes into comrak. I've opened an upstream issue at commonmark/cmark#292.
from comrak.
Related Issues (20)
- Construct an AST programmatically in 0.20 HOT 5
- [GFM] Alerts HOT 1
- How is the fuzzing run / fuzz testing as part of CI HOT 3
- Lists not exitable HOT 3
- Width options usage ? HOT 2
- nested lists not rendering properly HOT 1
- Adding Node.traverse() examples and/or documentation. HOT 9
- Invalid rendering of a list followed by another block HOT 9
- Rendering of hard line breaks HOT 2
- Can `comrak` format directories recursively? HOT 4
- Incorrect sourcepos for Setext headings HOT 1
- Change autolink to allow more protocols, same as normal markdown links HOT 5
- Autolink edge cases HOT 7
- Autolink edge case: underscores in url
- [feature request] Make copy-paste preserve markdown on generated HTML HOT 7
- Proposal: Discord-flavored Markdown HOT 2
- NodeHeading should have a property, indicating ATX closed header HOT 1
- Autolink incorrectly dropping tildes HOT 5
- Add AST validation to non-CommonMark outputs.
- Math block with minus at start of a line is parsed as a list HOT 6
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 comrak.