Giter VIP home page Giter VIP logo

Comments (9)

sbarex avatar sbarex commented on May 23, 2024 1

Markdown was born to be a simple language, then unfortunately, perhaps also due to the absence of a rigid syntax, it has branched into a myriad of flavors with different functionalities and extensions.

My application uses the engine cmark-gfm that is a fork from commonmark. Macdown uses a different engine (hoedown).

I have no intention of intervening on the engine code (I am not an expert C developer) to change the standard behavior.
If cmark-gfm were to add this feature, I will be happy to support it in my app.

from qlmarkdown.

porg avatar porg commented on May 23, 2024 1

@sbarex as you can see by the cross-project-link I inquired over as cmark-gfm. Let's see what they make of it.

from qlmarkdown.

sbarex avatar sbarex commented on May 23, 2024 1

Thanks, I didn't know the syntax of angle brackets!

from qlmarkdown.

sbarex avatar sbarex commented on May 23, 2024

White space is not allowed inside url, they must be encoded as %20.
See the markdown link specification:

... a nonempty sequence of characters that does not include ASCII space or control characters...

from qlmarkdown.

porg avatar porg commented on May 23, 2024

Thanks for quoting the specification.

Could QLMarkdown nevertheless consider this as a convenience option if it does not harm/complicate syntax parsing too much?

The guys from MacDown have also added this convenience option as can be seen on the screenshot.

from qlmarkdown.

porg avatar porg commented on May 23, 2024

I just remind that markdown's goal was an easily human readable/writeable markup language.
Having to transform   to %20 everywhere contradicts both that goals IMHO.

from qlmarkdown.

porg avatar porg commented on May 23, 2024
  • Switching to hoedown: Neither an option to me as a layman (QLMarkdown overally looks/feels better than Macdown) and I guess also not to you.
  • So my remaining option is to lobby for this feature at cmark-gfm, right?

from qlmarkdown.

sbarex avatar sbarex commented on May 23, 2024

When I started developing the app I didn't do a full research on what markdown engines existed. I chose cmark-gfm because it is maintained by github, although I later discovered that it is not used for managing github pages !

from qlmarkdown.

porg avatar porg commented on May 23, 2024

Closing as WONTFIX

Markdown Specification

https://spec.commonmark.org/0.30/#links

A link contains link text (the visible text), a link destination (the URI that is the link destination), and optionally a link title. There are two basic kinds of links in Markdown. In inline links the destination and title are given immediately after the link text. In reference links the destination and title are defined elsewhere in the document.

A link text consists of a sequence of zero or more inline elements enclosed by square brackets ([ and ]).

[…]

A link destination consists of either

  • a sequence of zero or more characters between an opening < and a closing > that contains no line endings or unescaped < or > characters, or

  • a nonempty sequence of characters that does not start with <, does not include ASCII control characters or space character, and includes parentheses only if (a) they are backslash-escaped or (b) they are part of a balanced pair of unescaped parentheses. (Implementations may impose limits on parentheses nesting to avoid performance issues, but at least three levels of nesting should be supported.

[…]

An inline link consists of a link text followed immediately by a left parenthesis (, an optional link destination, an optional link title, and a right parenthesis ).

Screenshot

QLMarkdown renders filename with spaces if within angled and rounded brackets

from qlmarkdown.

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.