Skip to content

Commit

Permalink
Merge pull request #23 from metalsmith/feature/release-1.1.0-proposal
Browse files Browse the repository at this point in the history
Resolve #22: Node8-compatible release, update marked to 2.1.0, update changelog
  • Loading branch information
webketje committed Jan 4, 2022
2 parents b94ccfc + 81e1526 commit 3ed1297
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
9 changes: 4 additions & 5 deletions .travis.yml
Expand Up @@ -2,11 +2,10 @@ language: node_js
sudo: false

node_js:
- "8"
- "9"
- "10"
- "11"
- "12"
- 8
- 10
- 12
- 16

notifications:
email: false
Expand Down
5 changes: 5 additions & 0 deletions HISTORY.md
@@ -1,5 +1,10 @@
# Changelog

## v1.1.0: 2021-12-16

- Updated marked to 2.1.0
- Dropped support for Node < 8.16.2

## v1.0.3: 2017-12-04

- Updated marked to 0.3.9
Expand Down
9 changes: 4 additions & 5 deletions index.js
@@ -1,10 +1,9 @@
'use strict'

const marked = require('marked')
// Marked 2.1.0 is Node 8 compatible only when required from the lib folder
const marked = require('marked/lib/marked')

exports.name = 'marked'
exports.outputFormat = 'html'
exports.inputFormats = ['marked', 'markdown', 'md']
exports.render = function (str, options) {
return marked(str, options)
exports.render = function (string, options) {
return marked(string, options)
}
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -6,21 +6,21 @@
"jstransformer"
],
"dependencies": {
"marked": "^0.3.9"
"marked": "^2.1.0"
},
"files": [
"index.js"
],
"devDependencies": {
"test-jstransformer": "^1.0.0",
"xo": "*"
"xo": "^0.25.4"
},
"scripts": {
"test": "test-jstransformer",
"posttest": "xo --space=2 --no-semicolon index.js"
},
"engines": {
"node": ">=4"
"node": ">=8.16.2"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 3ed1297

Please sign in to comment.