-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for links like [this]
?
#597
Comments
Interesting, I wouldn't be opposed to it. Assuming there's a good name for the extra lol. |
@nicholasserra GFM calls
In terms of the "extra" name on
Of the above, I personally would prefer 4 (
|
It seems like we support the full reference links right now, without an extra. Wondering if we should just support the short without an extra too. This is just from a quick glance at the _do_links method. I'll have to do some testing. |
I would agree with that approach. I took a look at implementing this as a new style extra class and it's tricky to nail down. I settled on detecting snippets like I think making this part of |
Add `link-shortrefs` extra (#597)
Consider the following markdown file
links.md
:I can compile it with markdown2 as follows:
When I open the HTML, this is what I get:
[Python]
;Is writing links as just
[Python]
supported? Or are only links with[Python][]
supported?Some other markdown engines (e.g.: GFM) support
[Python]
. Could this be added tomarkdown2
as an extra to be activated with-x
?I actually initially thought that
[Python]
was standard markdown. Upon looking at the syntax specification it seems only[Python][]
would be standard. It nevertheless seems to be that the former is quite common, so I suggest adding it as an extension. (If you think this is a good idea of course.)Debug info
I also tried with:
The text was updated successfully, but these errors were encountered: