Treat - as regular text unless it's in a title#24
Treat - as regular text unless it's in a title#24RobertDober merged 1 commit intoRobertDober:masterfrom
Conversation
|
I excluded |
|
First of all thank you for such a well documented and motivated PR. DashesI agree with the ... I am trying hard to get GFM compliance (e.g. #9), because we (ex_doc and YHS) feel that this is what folks expect nowadays. However I am all pragmatic about such edge cases and do not even know what an empty list is good for (getting a bullet w/o an HTML Entity, utf/8 characher)? So please feel free to handle the single dash as you please (I might change it back later, depending on feedback) Equal SignI have inherited this test from Dave, never given it a thought Given this https://babelmark.github.io/?text=A%0AB%0A%3D maybe it makes sense to issue an error after all. Is there any value in treating |
|
I don't have a use case for the If we're trying to follow GFM, they call a single |
|
Ok does this mean you want do change your PR before merging? If not I'll take a closer look ASAP. Thanks again for your support |
|
I'll try and get it rendering as a list this evening. |
|
I'm working on making it a list and the code is starting to get pretty nasty. Since this is such an edge case, I'm tempted to leave it as is until someone complains. |
|
Great @sionide21 I"ll merge it then |
Well I guess it is ok as the scanner surely does not have the context of knowing how a The token is just miss-named, as we do not know if it will eventually be a So you are completely right that the discrimination in the pattern match should be on hypothetical tokens But please be aware that Earmark was created in an incredible short time by an incredible gifted man who was (and is) incredibly busy with many things,... |
This fixes a bug where
"--"parses and an empty paragraph with a warning.The
"--"case is pretty well agreed upon as regular textThe trickier one is the
"-"case. It's just about tied between whether it should be regular text or an empty list. I made it regular text so I could get a PR up and discussion started, but am open to making it an empty list if that would be better.