mistune: Line under quote is not considered part of quote

Apologies if this just an issue on my side. But I found that the follow two lines would not be joined into the same quote, when passed to my custom renderer:

> first quote line
second line underneath

I assumed they would both be passed together to the block_quote function.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 21 (4 by maintainers)

Commits related to this issue

Most upvoted comments

This is fixed in v3.

I’m working on a new way to write the parser, which will make it easier to solve problem like this. Pure regex is just very hard to fix this problem.

@karlcow @lepture what’s the status of this? Thanks.

Yes not sure it’s entirely doable with only regex. look-ahead look-behind can’t work with variables size pattern of spaces. I’ll check later if I have time. My plate is a bit full today.

@makeworld-the-better-one yes, it can be fixed. I don’t have too much spare time in this library right now. But I’m happy to accept a PR.

Well it’s more about what the spec says rather than what you think might be better.

first line

  • second line (or list)

Github seems to indicate that the second line would be a list. But you’d have to look at the spec to make sure.