Skip to content

Break line when encountering <div> tag#106

Open
SilverRainZ wants to merge 1 commit into
stalwartlabs:mainfrom
SilverRainZ:main
Open

Break line when encountering <div> tag#106
SilverRainZ wants to merge 1 commit into
stalwartlabs:mainfrom
SilverRainZ:main

Conversation

@SilverRainZ

Copy link
Copy Markdown

<div> is block-level element by default, let it behaves like a <p> element.


BTW, A block-level element always starts on a new line and ends on a new line, so the condition would be better to change from:

tag.eq_ignore_ascii_case(b"p") && is_tag_close

to:

tag.eq_ignore_ascii_case(b"p")

图片

I’m not sure if there was any special consideration for doing this before, so I kept the condition unchanged in this PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant