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

fix: correctly parse markdown inside of a table row when a preceding column has nested HTML elements #501

Merged
merged 7 commits into from
Aug 3, 2023

Conversation

gusbmurphy
Copy link
Contributor

This fixes #488. The issue I found was that when parsing HTML within a markdown table row, if there are nested HTML elements, then when we enter the parseBlock function and set state._inline to false, it prevents any rules using inlineRegex or simpleInlineRegex when we move on to process other cells in the table. I also added a very basic test for processing HTML within a table row because I didn't see one there. Interested to hear your feedback on this!

@gusbmurphy gusbmurphy closed this Jul 4, 2023
@gusbmurphy gusbmurphy reopened this Jul 4, 2023
Copy link
Owner

@quantizor quantizor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok to me! Let's ship it. Thank you :)

@quantizor quantizor merged commit 57ee6e9 into quantizor:main Aug 3, 2023
5 checks passed
marcustisater-kivra added a commit to kivra/toybox that referenced this pull request Oct 23, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [markdown-to-jsx](https://probablyup.github.io/markdown-to-jsx)
([source](https://togithub.com/probablyup/markdown-to-jsx)) | [`7.2.0`
->
`7.3.2`](https://renovatebot.com/diffs/npm/markdown-to-jsx/7.2.0/7.3.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/markdown-to-jsx/7.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/markdown-to-jsx/7.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/markdown-to-jsx/7.2.0/7.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/markdown-to-jsx/7.2.0/7.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>probablyup/markdown-to-jsx (markdown-to-jsx)</summary>

###
[`v7.3.2`](https://togithub.com/probablyup/markdown-to-jsx/releases/tag/v7.3.2)

[Compare
Source](https://togithub.com/probablyup/markdown-to-jsx/compare/v7.3.1...v7.3.2)

fix(types): path to esm types in "exports"

**Full Changelog**:
quantizor/markdown-to-jsx@v7.3.1...v7.3.2

###
[`v7.3.1`](https://togithub.com/probablyup/markdown-to-jsx/releases/tag/v7.3.1)

[Compare
Source](https://togithub.com/probablyup/markdown-to-jsx/compare/v7.3.0...v7.3.1)

#### What's Changed

-   add dev-time error if trying to provide bad input

**Full Changelog**:
quantizor/markdown-to-jsx@v7.3.0...v7.3.1

###
[`v7.3.0`](https://togithub.com/probablyup/markdown-to-jsx/releases/tag/v7.3.0)

[Compare
Source](https://togithub.com/probablyup/markdown-to-jsx/compare/v7.2.1...v7.3.0)

#### What's Changed

- chore(deps): bump word-wrap from 1.2.3 to 1.2.4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[quantizor/markdown-to-jsx#505
- chore(deps): bump semver from 6.3.0 to 6.3.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[quantizor/markdown-to-jsx#504
- chore(deps): bump tough-cookie from 4.1.2 to 4.1.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[quantizor/markdown-to-jsx#503
-
[#&#8203;379](https://togithub.com/probablyup/markdown-to-jsx/issues/379)
- Allow more custom HTML character codes by
[@&#8203;brianfryer](https://togithub.com/brianfryer) in
[quantizor/markdown-to-jsx#502
- fix: correctly parse markdown inside of a table row when a preceding
column has nested HTML elements by
[@&#8203;gusbmurphy](https://togithub.com/gusbmurphy) in
[quantizor/markdown-to-jsx#501
- add option to enforce a space between headings by
[@&#8203;insanicly](https://togithub.com/insanicly) in
[quantizor/markdown-to-jsx#440
- fix: Update package.json for "type": "module" with updated
`size-limit` tests for `index.cjs` and `index.module.js` (replacing
`index.js`) by
[@&#8203;nbarrow-inspire-labs](https://togithub.com/nbarrow-inspire-labs)
in
[quantizor/markdown-to-jsx#500

#### New Contributors

- [@&#8203;brianfryer](https://togithub.com/brianfryer) made their first
contribution in
[quantizor/markdown-to-jsx#502
- [@&#8203;gusbmurphy](https://togithub.com/gusbmurphy) made their first
contribution in
[quantizor/markdown-to-jsx#501
- [@&#8203;insanicly](https://togithub.com/insanicly) made their first
contribution in
[quantizor/markdown-to-jsx#440
-
[@&#8203;nbarrow-inspire-labs](https://togithub.com/nbarrow-inspire-labs)
made their first contribution in
[quantizor/markdown-to-jsx#500

**Full Changelog**:
quantizor/markdown-to-jsx@v7.2.1...v7.3.0

###
[`v7.2.1`](https://togithub.com/probablyup/markdown-to-jsx/releases/tag/v7.2.1)

[Compare
Source](https://togithub.com/probablyup/markdown-to-jsx/compare/v7.2.0...v7.2.1)

#### What's Changed

- fix: move `types` condition to the front by
[@&#8203;Andarist](https://togithub.com/Andarist) in
[quantizor/markdown-to-jsx#492

#### New Contributors

- [@&#8203;Andarist](https://togithub.com/Andarist) made their first
contribution in
[quantizor/markdown-to-jsx#492

**Full Changelog**:
quantizor/markdown-to-jsx@v7.2.0...v7.2.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/kivra/toybox).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi40My4yIiwidXBkYXRlZEluVmVyIjoiMzYuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marcus Tisäter <77273035+marcustisater-kivra@users.noreply.github.com>
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.

table with <ol> or <ul> tags.
2 participants