Skip to content

Bug fix: Add optional chain for inTable check #6

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
function exitCodeText(token) {
let value = this.resume()

if (this.data.inTable) {
if (this.data?.inTable) {
value = value.replace(/\\([\\|])/g, replace)
}

Expand Down Expand Up @@ -230,11 +230,11 @@
function serializeData(matrix, align) {
return markdownTable(matrix, {
align,
// @ts-expect-error: `markdown-table` types should support `null`.

Check failure on line 233 in lib/index.js

View workflow job for this annotation

GitHub Actions / lts/gallium

Unused '@ts-expect-error' directive.

Check failure on line 233 in lib/index.js

View workflow job for this annotation

GitHub Actions / node

Unused '@ts-expect-error' directive.
alignDelimiters,
// @ts-expect-error: `markdown-table` types should support `null`.

Check failure on line 235 in lib/index.js

View workflow job for this annotation

GitHub Actions / lts/gallium

Unused '@ts-expect-error' directive.

Check failure on line 235 in lib/index.js

View workflow job for this annotation

GitHub Actions / node

Unused '@ts-expect-error' directive.
padding,
// @ts-expect-error: `markdown-table` types should support `null`.

Check failure on line 237 in lib/index.js

View workflow job for this annotation

GitHub Actions / lts/gallium

Unused '@ts-expect-error' directive.

Check failure on line 237 in lib/index.js

View workflow job for this annotation

GitHub Actions / node

Unused '@ts-expect-error' directive.
stringLength
})
}
Expand Down
Loading