Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 8, 2021
1 parent 68b797d commit 10686c4
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"rehype-parse": "^8.0.0",
"rehype-stringify": "^9.0.0",
"remark-cli": "^10.0.0",
"remark-html": "^14.0.0",
"remark-html": "^15.0.0",
"remark-parse": "^10.0.0",
"remark-preset-wooorm": "^9.0.0",
"remark-rehype": "^9.0.0",
"remark-rehype": "^10.0.0",
"remark-stringify": "^10.0.0",
"rimraf": "^3.0.0",
"tape": "^5.0.0",
Expand All @@ -37,7 +37,7 @@
"unified": "^10.0.0",
"unist-builder": "^3.0.0",
"unist-util-remove-position": "^4.0.0",
"xo": "^0.44.0"
"xo": "^0.45.0"
},
"scripts": {
"postinstall": "lerna bootstrap --no-ci",
Expand Down
4 changes: 2 additions & 2 deletions packages/rehype-katex/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export default function rehypeKatex(options) {
value,
assign({}, settings, {displayMode, throwOnError: true})
)
} catch (exception) {
const error = /** @type {Error} */ (exception)
} catch (error_) {
const error = /** @type {Error} */ (error_)
const fn = throwOnError ? 'fail' : 'message'
const origin = [source, error.name.toLowerCase()].join(':')

Expand Down
4 changes: 2 additions & 2 deletions packages/rehype-katex/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ test('rehype-katex', (t) => {
.processSync(
'<p>Lorem</p>\n<p><span class="math-inline">\\alpa</span></p>'
)
} catch (exception) {
const error = /** @type {Error} */ (exception)
} catch (error_) {
const error = /** @type {Error} */ (error_)
t.equal(
error.message,
'KaTeX parse error: Undefined control sequence: \\alpa at position 1: \\̲a̲l̲p̲a̲',
Expand Down
2 changes: 1 addition & 1 deletion packages/rehype-mathjax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@types/web": "^0.0.15",
"hast-util-from-dom": "^4.0.0",
"hast-util-to-text": "^3.1.0",
"jsdom": "^16.0.0",
"jsdom": "^17.0.0",
"mathjax-full": "^3.0.0",
"unified": "^10.0.0",
"unist-util-visit": "^4.0.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/remark-html-katex/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export default function remarkHtmlKatex(options = {}) {
throwOnError: true
})
)
} catch (exception) {
const error = /** @type {Error} */ (exception)
} catch (error_) {
const error = /** @type {Error} */ (error_)
const fn = throwOnError ? 'fail' : 'message'
const origin = [source, error.name.toLowerCase()].join(':')

Expand Down
18 changes: 9 additions & 9 deletions packages/remark-html-katex/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test('remark-html-katex', (t) => {
.use(remarkParse)
.use(remarkMath)
.use(remarkHtmlKatex)
.use(remarkHtml)
.use(remarkHtml, {sanitize: false})
.processSync(
[
'Inline math $\\alpha$.',
Expand Down Expand Up @@ -53,7 +53,7 @@ test('remark-html-katex', (t) => {
.use(remarkParse)
.use(remarkMath)
.use(remarkHtmlKatex, {macros})
.use(remarkHtml)
.use(remarkHtml, {sanitize: false})
.processSync('$\\RR$')
.toString(),
unified()
Expand All @@ -73,7 +73,7 @@ test('remark-html-katex', (t) => {
.use(remarkParse)
.use(remarkMath)
.use(remarkHtmlKatex, {errorColor: 'orange'})
.use(remarkHtml)
.use(remarkHtml, {sanitize: false})
.processSync('$\\alpa$')
.toString(),
unified()
Expand All @@ -96,7 +96,7 @@ test('remark-html-katex', (t) => {
.use(remarkParse)
.use(remarkMath)
.use(remarkHtmlKatex)
.use(remarkHtml)
.use(remarkHtml, {sanitize: false})
.processSync('Lorem\n$\\alpa$')
.messages.map((d) => String(d)),
[
Expand All @@ -110,10 +110,10 @@ test('remark-html-katex', (t) => {
.use(remarkParse)
.use(remarkMath)
.use(remarkHtmlKatex, {throwOnError: true})
.use(remarkHtml)
.use(remarkHtml, {sanitize: false})
.processSync('Lorem\n$\\alpa$')
} catch (exception) {
const error = /** @type {Error} */ (exception)
} catch (error_) {
const error = /** @type {Error} */ (error_)
t.equal(
error.message,
'KaTeX parse error: Undefined control sequence: \\alpa at position 1: \\̲a̲l̲p̲a̲',
Expand All @@ -126,7 +126,7 @@ test('remark-html-katex', (t) => {
.use(remarkParse)
.use(remarkMath)
.use(remarkHtmlKatex, {errorColor: 'orange', strict: 'ignore'})
.use(remarkHtml)
.use(remarkHtml, {sanitize: false})
.processSync('$ê&$')
.toString(),
unified()
Expand All @@ -141,7 +141,7 @@ test('remark-html-katex', (t) => {

const pipeline = unified()
.use(remarkHtmlKatex, {errorColor: 'orange', strict: 'ignore'})
.use(remarkHtml)
.use(remarkHtml, {sanitize: false})

t.deepEqual(
pipeline.stringify(
Expand Down

0 comments on commit 10686c4

Please sign in to comment.