fix: inspect emphasized Korean prose endings
This commit is contained in:
@@ -149,6 +149,7 @@ def reader_prose_segments(markdown: str) -> list[ReaderProseSegment]:
|
||||
for quoted_span in _QUOTED_SPANS:
|
||||
prose = quoted_span.sub("", prose)
|
||||
prose = re.sub(r"^\s*(?:[-*+]|\d+[.)])\s+", "", prose).strip()
|
||||
prose = re.sub(r"[*_~]", "", prose).strip()
|
||||
if prose:
|
||||
segments.append(ReaderProseSegment(prose, line_number, current_h2))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user