Closed joshjordan closed 12 years ago
This is an excellent feature, but it's missing a use case. Some Markdown links can use the [title][linkname] syntax format, and this patch does not account for that. Looking at the source code, it seems like it should just require a change to the linkre regex to support square brackets instead of the parentheses, but I'm not sure.
If you could update this to support both link formats, I will gladly merge it. Thanks!
Hi John,
Thanks for the consideration. I updated to use both Markdown formats, and found a bug with my previous implementation along the way (which is now fixed for both link styles).
Josh
On Wed, Sep 5, 2012 at 12:11 PM, John Reese notifications@github.comwrote:
This is an excellent feature, but it's missing a use case. Some Markdown links can use the [title][linkname] syntax format, and this patch does not account for that. Looking at the source code, it seems like it should just require a change to the linkre regex to support square brackets instead of the parentheses, but I'm not sure.
If you could update this to support both link formats, I will gladly merge it. Thanks!
— Reply to this email directly or view it on GitHubhttps://github.com/jreese/markdown-pp/pull/5#issuecomment-8304281.
Thanks for the contributions! :)
markdown-pp used to produce something like this when it encountered headings with links:
Now, you'll see this: