Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 5, 2024
1 parent da4900e commit 11590c2
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 46 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
name: ${{matrix.node}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}
- run: npm install
- run: npm test
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
strategy:
matrix:
node:
Expand Down
6 changes: 3 additions & 3 deletions dev/lib/edit-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class EditMap {
* @returns {undefined}
*/
add(index, remove, add) {
addImpl(this, index, remove, add)
addImplementation(this, index, remove, add)
}

// To do: add this when moving to `micromark`.
Expand All @@ -58,7 +58,7 @@ export class EditMap {
// * @returns {undefined}
// */
// addBefore(index, remove, add) {
// addImpl(this, index, remove, add, true)
// addImplementation(this, index, remove, add, true)
// }

/**
Expand Down Expand Up @@ -133,7 +133,7 @@ export class EditMap {
* @param {Array<Event>} add
* @returns {undefined}
*/
function addImpl(editMap, at, remove, add) {
function addImplementation(editMap, at, remove, add) {
let index = 0

/* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
Expand Down
4 changes: 2 additions & 2 deletions dev/lib/syntax.js
Original file line number Diff line number Diff line change
Expand Up @@ -819,8 +819,8 @@ function flushCell(map, context, range, rowKind, rowEnd, previousCell) {
rowKind === 1
? 'tableHeader'
: rowKind === 2
? 'tableDelimiter'
: 'tableData'
? 'tableDelimiter'
: 'tableData'
// `markdown-rs` uses:
// rowKind === 2 ? 'tableDelimiterCellValue' : 'tableCellText'
const valueName = 'tableContent'
Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@
},
"devDependencies": {
"@types/node": "^20.0.0",
"c8": "^8.0.0",
"c8": "^10.0.0",
"create-gfm-fixtures": "^1.0.0",
"micromark": "^4.0.0",
"micromark-build": "^2.0.0",
"prettier": "^2.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"prettier": "^3.0.0",
"remark-cli": "^12.0.0",
"remark-preset-wooorm": "^10.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"xo": "^0.54.0"
"xo": "^0.58.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
"build": "tsc --build --clean && tsc --build && type-coverage && micromark-build",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
"test-api-prod": "node --conditions production test/index.js",
"test-api-dev": "node --conditions development test/index.js",
"test-api": "npm run test-api-dev && npm run test-api-prod",
Expand Down Expand Up @@ -109,7 +109,8 @@
"rules": {
"complexity": "off",
"max-depth": "off",
"unicorn/no-this-assignment": "off"
"unicorn/no-this-assignment": "off",
"unicorn/prefer-string-replace-all": "off"
}
}
}
56 changes: 28 additions & 28 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@

## Contents

* [What is this?](#what-is-this)
* [When to use this](#when-to-use-this)
* [Install](#install)
* [Use](#use)
* [API](#api)
* [`gfmTable()`](#gfmtable)
* [`gfmTableHtml()`](#gfmtablehtml)
* [Bugs](#bugs)
* [Authoring](#authoring)
* [HTML](#html)
* [CSS](#css)
* [Syntax](#syntax)
* [Types](#types)
* [Compatibility](#compatibility)
* [Security](#security)
* [Related](#related)
* [Contribute](#contribute)
* [License](#license)
* [What is this?](#what-is-this)
* [When to use this](#when-to-use-this)
* [Install](#install)
* [Use](#use)
* [API](#api)
* [`gfmTable()`](#gfmtable)
* [`gfmTableHtml()`](#gfmtablehtml)
* [Bugs](#bugs)
* [Authoring](#authoring)
* [HTML](#html)
* [CSS](#css)
* [Syntax](#syntax)
* [Types](#types)
* [Compatibility](#compatibility)
* [Security](#security)
* [Related](#related)
* [Contribute](#contribute)
* [License](#license)

## What is this?

Expand Down Expand Up @@ -136,8 +136,8 @@ GitHub’s own algorithm to parse tables contains a bug.
This bug is not present in this project.
The issue relating to tables is:

* [GFM tables: escaped escapes are incorrectly treated as
escapes](https://github.com/github/cmark-gfm/issues/277)
* [GFM tables: escaped escapes are incorrectly treated as
escapes](https://github.com/github/cmark-gfm/issues/277)

## Authoring

Expand Down Expand Up @@ -407,14 +407,14 @@ This package is safe.

## Related

* [`micromark-extension-gfm`][micromark-extension-gfm]
— support all of GFM
* [`mdast-util-gfm-table`][mdast-util-gfm-table]
— support all of GFM in mdast
* [`mdast-util-gfm`][mdast-util-gfm]
— support all of GFM in mdast
* [`remark-gfm`][remark-gfm]
— support all of GFM in remark
* [`micromark-extension-gfm`][micromark-extension-gfm]
— support all of GFM
* [`mdast-util-gfm-table`][mdast-util-gfm-table]
— support all of GFM in mdast
* [`mdast-util-gfm`][mdast-util-gfm]
— support all of GFM in mdast
* [`remark-gfm`][remark-gfm]
— support all of GFM in remark

## Contribute

Expand Down
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,14 @@ test('markdown -> html (micromark)', async function (t) {
await t.test(
'should not change how lists and lazyness work',
async function () {
const doc = ' - d\n - e'
const document = ' - d\n - e'

assert.deepEqual(
micromark(doc, {
micromark(document, {
extensions: [gfmTable()],
htmlExtensions: [gfmTableHtml()]
}),
micromark(doc)
micromark(document)
)
}
)
Expand Down

0 comments on commit 11590c2

Please sign in to comment.