Welcome to Codidact Meta!
Codidact Meta is the "town hall" (meta-discussion site) for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.
When a text is selected, clicking on quote should quote the entire text, not just add a single > at the beginning of the selected text.
Feature request: When a text is selected, clicking on quote should quote the entire text, not just add a single > at the beginning of the selected text.
1 answer
Make button quote every line in a selection
I believe this can be achieved by changing the behaviour of the button to insert >[1] at the beginning of every line in the selection, rather than just the first. The rendered post will still have behaviour consistent with non-quoted text for both single and double newlines.
To demonstrate, here is some raw text and its rendered result, including both single and double newlines, in plain and quoted form (notice that in both cases a single newline is rendered as a space, and a double newline is rendered as a new paragraph, as expected):
Raw text
Line one
Line two
Line three
>Line one
>Line two
>
>Line three
Rendered result
Line one Line two
Line three
Line one Line two
Line three
Include empty lines
It is important that empty (blank) lines also have > inserted, otherwise the quote will be split into several smaller quote blocks when rendered. Here's an example showing the results with and without > on blank lines:
Raw text
>Line one
>Line two
>
>Line three
>Line one
>Line two
>Line three
Rendered result
Line one Line two
Line three
Line one Line two
Line three
-
Currently there is an additional space inserted before and after the greater than sign (
>is inserted rather than>) so a decision may be needed on whether to keep either or both of those spaces, but the principle is the same either way. The rendered post looks identical regardless of whether spaces are used. ↩︎

0 comment threads