-
Notifications
You must be signed in to change notification settings - Fork 46
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
reference-links not handled like pandoc or github #31
Comments
Thanks for your feedback.
So when you write
it's like writing If you write this instead:
it returns So, instead you should write this:
which produces
Or
which is the official shortcut style. That being said, I agree to eventually implement this feature, maybe for omd 0.5.6 or 0.5.7 hopefully. |
Oh, there's a bug in github's markdown renderer...
gives this:
(an empty rectangle... if it's not empty anymore, it means the bug has been fixed) |
Thanks I did not know And yes having the |
I suspect Pandoc's markdown_strict feature to be not very well maintained. But since I haven't made any bug reports even when I should have, I'm not (yet) blaming Pandoc's authors and/or maintainers. I based the implementation of OMD on this document: http://daringfireball.net/projects/markdown/syntax. However I do have a doubt about allowing more than one space character between the first part between brackets and the second part: I'm not sure why OMD allows multiple line breaks (this might be changed to allowing a single space character in the next version). Also, (half) surprisingly, pandoc doesn't generate an html link when a reference is broken, meaning a file with just |
I think passing through syntax that isn't recognized is the correct behavior, so that's preferred instead of |
Sadly, I think you're right. That means I either have to change the type Let's plan this for version 0.6.0 then. (Yes, I've been trying to give more meaningful version numbers since 0.5.0.) |
Hmmm, it's somehow related to https://github.com/pw374/omd/issues/21 because if we have locations in the AST, they could potentially be enough to implement fallbacks... |
3b4babe replaces |
57b8379 implements non-regular references such as in
Also, 4e4784f prevents two-part references from having its 2 parts separated by other things than "zero, one or multiple spaces, or a newline (and not a combination of them)" (otherwise it doesn't work well with non regular references). |
Actually, I think this feature should be opt-in only. Indeed, if it makes sense got Github the implement these kind of links because the posts are rather short, there are several places on ocaml.org where the brackets are used for something else than a link. At some point, I think |
Please reopen. |
|
Except that the content is not processed (it could contain code, links,...). |
On 20 Nov 2013, at 13:08, Christophe Troestler [email protected] wrote:
Indeed. The |
I had forgotten about this one... It should be fixed by a7ea3eb |
The test case is:
With omd:
With pandoc:
and with github:
ref
My
omd
is the one in Opam:The text was updated successfully, but these errors were encountered: