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
Blockquotes #5
Comments
@mntn-xyz first of all, sorry for taking that much of a while to respond, the last few days were quite a time. :-D Removing line breaks in blockquotes is an intended behaviour, as there's no line length limit in Gemtext documents, and Gemini spec strongly recommends allowing clients to soft wrap text; therefore text in blockquotes is treated the same way general text is; see Blank quotes are indeed an issue and do cause a panic, thanks to the (faulty) logic of HTML tags in blockquotes being kept appears to be a gomarkdown issue, because the logic for paragraph/blockquote text extraction is in essence the same: calling |
No problem, thanks for getting back to me! I'm just glad you're maintaining this, I think it will be useful for spreading Gemini adoption. So on line breaks, it is true that the Gemini spec says that "quoted content is written as a single line". But it doesn't say that you can't put one quote right after another, and generally blockquotes are often used to output more than one line or paragraph. To me, the most obvious use cases for multiline blockquotes are multi-paragraph quotes and poetry. You can find some examples here: gemini://whither.smol.pub/quotes. Some clients render these as multiline blockquotes (with wrapping!) while some simply display them as plain text lines. Currently the vulpes.one proxy just wraps each line, and it looks funny but it's technically in spec: https://proxy.vulpes.one/gemini/whither.smol.pub/quotes In fact it isn't required for Gemini clients to render these lines any differently than normal text: "It is strictly optional for clients to do anything special at all with blockquotes, and some clients will treat them just like any other line of text." Since lines of text support newlines (they are inserted verbatim), it follows that newlines should be supported here as well. For what it's worth, I think this should be clarified in the official Gemini spec. |
While renderer previously assumed there would always be a single paragraph inside the blockquote, there sometimes can be either more or none. See #5.
This makes the renderer preserve existing line breaks in blockquotes, provided they do not split paragraphs. Some clients/sites may use this to form semantic around line breaks (for instance, for poems). See #5.
@mntn-xyz looks good to you? |
I would consider that fixed! |
Just wanted to note a couple of issues:
<br>
and<cite>
which are present in the output)The text was updated successfully, but these errors were encountered: