-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
multiline link urls no longer trimmed and concatenated #64
Comments
yes it's a bug! |
Culprit is commit 1b5425c
-- the |
I'm not sure this is the best place to mention it, but #46 feels somewhat related to what I discussed in djot#247. Briefly I propose to consider that link URLs, references, and attribute blocks should change the parser mode, just like raw text in code spans, which has indirect impact in how invalid constructs are parsed (automatically closed at the end of bock, just like code spans). |
Yes, the complexity in #46 is needed because we want to allow you to have regular text after something that would (if properly continued) introduce an attribute or link or reference. These
become <p>[hi](<strong>emph</strong></p>
<p>[hi][<strong>emph</strong></p>
<p><span>hi</span>{.class <strong>emph</strong></p> You're asking whether that's something we should want. |
Previously
djot
would allow me to have long urls split across lines:Before 0.2.4, it would eliminate the whitespace between those URL components:
However, with 0.2.4, it now keeps spaces in the URL:
I didn't notice at first because the browser seems to "do the right thing", but is this intended / guaranteed to always work?
Many thanks for all the great work on djot!!
The text was updated successfully, but these errors were encountered: