ultramarked
Advanced tools
Comparing version 0.5.1 to 0.5.3
@@ -10,3 +10,3 @@ { | ||
}, | ||
"version": "0.5.1", | ||
"version": "0.5.3", | ||
"repository": { | ||
@@ -21,3 +21,4 @@ "type": "git", | ||
"marked": "~0.2.9", | ||
"highlight.js": "~7.3.0" | ||
"highlight.js": "~7.3.0", | ||
"ent": "0.0.5" | ||
}, | ||
@@ -27,3 +28,4 @@ "engines": { | ||
"npm": "1.2.x" | ||
} | ||
}, | ||
"main": "./src/index.js" | ||
} |
@@ -25,2 +25,11 @@ # ultramarked | ||
Syntax highlighting powered by [highlight.js](https://github.com/isagalaev/highlight.js), no extra magic. | ||
Syntax highlighting powered by [highlight.js](https://github.com/isagalaev/highlight.js), no extra magic. | ||
### options.ultrasanitize | ||
As of right now, Marked encodes **all** HTML input when `sanitize = true`. Set this option to true to use the [AngularJS Sanitizer](https://github.com/angular/angular.js/blob/master/lib/htmlparser/htmlparser.js) sanitizer, tweaked to disallow script and style tags. | ||
### options.ultrasanitize_pagedown | ||
Angular's sanitizer option might be too lenient for you. If that's the case, you can use PageDown's white-list instead, which is much more narrow, and doesn't allow setting class attributes, for example. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
51749
8
460
34
3
1