Comparing version 0.4.1 to 0.5.0
# Changelog | ||
## 0.5.0 | ||
- Omit the `id` attribute from headers | ||
## 0.4.1 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "rdd", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "Preview your `README.md` locally as it would appear on GitHub, with live updating. Useful for Readme Driven Development.", | ||
@@ -5,0 +5,0 @@ "author": "Lim Yuan Qing", |
@@ -14,7 +14,12 @@ const chokidar = require('chokidar') | ||
// Configure `marked` to use `highlight.js`. | ||
const renderer = new marked.Renderer() | ||
renderer.heading = function (text, level) { | ||
return `<h${level}>${text}</h${level}>` | ||
} | ||
marked.setOptions({ | ||
gfm: true, | ||
highlight: function (code) { | ||
return highlight.highlightAuto(code).value | ||
} | ||
}, | ||
renderer: renderer | ||
}) | ||
@@ -21,0 +26,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
201149
245