Skip to content

Ignore block synstax when determining emphasis can_open/close#756

Merged
Martin1887 merged 2 commits intopulldown-cmark:masterfrom
notriddle:notriddle/block-structure-can-open
Oct 31, 2023
Merged

Ignore block synstax when determining emphasis can_open/close#756
Martin1887 merged 2 commits intopulldown-cmark:masterfrom
notriddle:notriddle/block-structure-can-open

Conversation

@notriddle
Copy link
Collaborator

Fixes #755

Consider this markdown:

>**#*

**#*

The block quote should not change the way emphasis is parsed. But in pulldown-cmark, it did:

<blockquote>
<p>**#*</p>
</blockquote>
<p>*<em>#</em></p>

Both paragraphs now contain the same text.

Consider this markdown:

```markdown
>**#*

**#*
```

The block quote should not change the way emphasis is parsed. But in pulldown-cmark, it did:

```html
<blockquote>
<p>**#*</p>
</blockquote>
<p>*<em>#</em></p>
```

Both paragraphs now contain the same text.
@Martin1887
Copy link
Collaborator

Thanks!

@Martin1887 Martin1887 merged commit 73fe76b into pulldown-cmark:master Oct 31, 2023
@notriddle notriddle deleted the notriddle/block-structure-can-open branch October 31, 2023 20:03
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.

[fuzz result] can_open/close is looking at the syntax of the containing block

2 participants