Giter Site home page Giter Site logo

Terminating emphasis about mmark HOT 3 OPEN

istathar avatar istathar commented on August 23, 2024
Terminating emphasis

from mmark.

Comments (3)

mrkkrp avatar mrkkrp commented on August 23, 2024

as escaped, shouldn't have been part of the word, and so the emphasis span should have been valid

Please see here: https://github.com/mmark-md/mmark#mmark-and-common-mark. Character after _ should have lower "level", but when something is escaped it becomes other character with level 2.

I agree, I couldn't figure out a good story for this (yet?). The present version is already much better than what we had before, it allows most combinations. In fact, I processed by entire blog with this, including all tutorials and stuff without issues.

from mmark.

istathar avatar istathar commented on August 23, 2024

Read it again now more closely. Ok: why does escaping a punctuation character level 1 (actually, markup character, which is why it needed escaping in the first place) escalate it to other character level 2? I would have expected escaping the markdown significant character to simply mean it wasn't treated as significant, returning it to punctuation.

(ah, if only it were easy to use U+200B ZERO WIDTH SPACE in text files)

AfC

from mmark.

mrkkrp avatar mrkkrp commented on August 23, 2024

I would have expected escaping the markdown significant character to simply mean it wasn't treated as significant, returning it to punctuation.

Then other cases would become problematic, e.g.

Here goes *(something\)*.

The truth is that in both cases there will be awkward situations. We need something more clever here. Unfortunately, I have little time to spend on MMark these days. And whatever time I have I'll be spending working on Megaparsec 7.

from mmark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.