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

build(deps): bump marked from 2.1.3 to 4.0.6 #162

Merged
merged 3 commits into from
Dec 9, 2021
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -32,10 +32,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Use Node.js 10 and setup registry
- name: Use Node.js 12 and setup registry
uses: actions/setup-node@v1
with:
node-version: 10.x
node-version: 12.x
# registry-url: https://npm.pkg.github.com/
- name: Install dependencies
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Auto-update list of contributors

on:
push:
branches: master
branches: [master]
workflow_dispatch:

concurrency:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 10 and setup registry
- name: Use Node.js 12 and setup registry
uses: actions/setup-node@v1
with:
node-version: 10.x
node-version: 12.x
registry-url: https://npm.pkg.github.com/
- name: Install deps
run: npm ci
Expand Down
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* let Styledown = require('@peopledoc/styledown');
*/

const Marked = require('marked')
const { marked } = require('marked')
const Cheerio = require('cheerio')
const extend = require('util')._extend
const mdextract = require('mdextract')
Expand Down Expand Up @@ -92,7 +92,7 @@ class Styledown {
/**
* @typedef ParsedFile
* @property {string} filePath - Path to the file relative to process.cwd()
* @property {string} html - file content converted to html using Marked
* @property {string} html - file content converted to html using marked
* @property {string} raw - File content without the css/scss...
*/
/**
Expand All @@ -108,7 +108,7 @@ class Styledown {
if (typeof src === 'string') {
return [{
filePath: '.',
html: Marked(src),
html: marked(src),
src
}]
}
Expand All @@ -119,14 +119,14 @@ class Styledown {
let src = mdextract(file.data, { lang: 'css' }).toMarkdown()
return {
filePath: file.name,
html: Marked(src),
html: marked(src),
src
}
} else {
return {
filePath: file.name,
src: file.data,
html: Marked(file.data)
html: marked(file.data)
}
}
})
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"cheerio": "^0.22.0",
"highlight.js": "^11.3.1",
"js-beautify": "^1.14.0",
"marked": "^2.1.3",
"marked": "^4.0.6",
"mdextract": "^1.0.0",
"minimist": "^1.2.0",
"prettier": "2.5.1",
Expand Down