Skip to content
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

Block quotes reflow - should this add > to each line? #325

Open
matthew-brett opened this issue Apr 21, 2020 · 4 comments
Open

Block quotes reflow - should this add > to each line? #325

matthew-brett opened this issue Apr 21, 2020 · 4 comments

Comments

@matthew-brett
Copy link

Please forgive me if this is the wrong issue tracker.

Consider this long line in a .md file:

> Here is a long quote where I type for many characters overflowing my line length limit of 79 characters.

In default Pandoc markdown, when I reflow this line (gqap) - I get:

> Here is a long quote where I type for many characters overflowing my line
length limit of 79 characters.

Notice the new line at the beginning of the second line. I know that the whole thing is still a valid block quote, according to https://daringfireball.net/projects/markdown/syntax#blockquote. But, in other modes, such as standard markdown mode (rather than pandoc markdown), or rmd mode, I get:

> Here is a long quote where I type for many characters overflowing my line
> length limit of 79 characters.

I personally find this neater. Should this also be the behavior for Pandoc markdown?

@alerque
Copy link
Member

alerque commented Apr 21, 2020

Yes, I would prefer to see that be the behavior when in hard wrap mode and/or reflowing lines. I'd be happy to accept a PR that made this happen.

@matthew-brett
Copy link
Author

Thanks - I'm afraid I would not be useful for the task of a PR - I have done some vim hacking, but I wouldn't know where to look for the reflow rules.

@alerque
Copy link
Member

alerque commented Apr 21, 2020

That's okay, but I probably won't get to it myself soon. We can hope somebody else comes along and wants to contribute.

I don't know how to do it off the top of my head either, but I believe I've seen things such as email formatting plugins that reflow using the > line prefix, so I know it's possible. I'd find some other plugin than does something similar for another format and poke around for how they accomplished it.

@matthew-brett
Copy link
Author

See: #326 as a ranging shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants