Comments (7)
Note that there is a lot of specifics in CommonMark that you may not want to implement in a single regex:
AS~~asdsa~~.
AS_ASD_
AS__ASD_
AS*ASD**
AS*ASD* (x)
AS*ASD
**A*
Rendered:
A tiny library may ship with certain limitations.
from snarkdown.
Ah for sure. The parser can probably be tweaked to fix this.
from snarkdown.
Actually hm, according to the original markdown post on daringfireball I think snarkdown's behavior here is correct. This might be a spec difference between commonmark and "traditional" markdown, I haven't yet read the commonmark spec on the subject to be sure.
If that is the case, I suppose it's up to you which one you want to support.
Regardless, thanks again! And no urgency on this or anything, of course.
from snarkdown.
I see the value of skipping foo_bar
for sure.
from snarkdown.
It seems that single underscores in links are parsed too, which makes posting links difficult:
https://www.beyonk.com/uk/tohp-_/ben-nevis-guiding
becomes
https://www.beyonk.com/uk/tohp-/ben-nevis-guiding
I think this is an actual issue, since the phrase is not wrapped per-se, it's a single occurrence.
from snarkdown.
Could reproduce this problem as well. Any plan to fix it soon?
from snarkdown.
Not wanting to implement every edge-case shouldn't prevent to handle common cases, right?
We can live with some differences with CommonMark, but breaking links due to a single underscore is a little harder to live with.
Can #101 be considered?
from snarkdown.
Related Issues (20)
- Strikethrough not working HOT 3
- HR not working after PRE
- Nested lists not working HOT 3
- unexpected link generated HOT 1
- feature request: fenced divs
- Add id to headings HOT 1
- Issue with ruler after <h3>
- The output for nested italic and bold is incorrect. HOT 3
- Exposiing the parser API
- Add usage example with PrismJS HOT 1
- pre+code tag instead of just pre HOT 1
- module not defined HOT 1
- Type declarations missing in npm package HOT 2
- v2.0 breaking changes HOT 1
- Angle-bracket link/url syntax not supported
- Date formatting support
- Unexpected parsing with single characters such as * HOT 1
- Markdown code not formatting correctly on uptime website HOT 3
- export declarations may only appear at top level of a module
- in inline html, attribute values are incorrectly parsed as markdown HOT 4
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 snarkdown.