@swimlane/docspa-remark-preset
Advanced tools
Comparing version 6.0.0 to 7.0.0
@@ -5,8 +5,12 @@ CHANGELOG | ||
## HEAD (Unreleased) | ||
* Added remark-sectionize | ||
_(none)_ | ||
-------------------- | ||
## 7.0.0 (2020-11-02) | ||
* Added remark-sectionize | ||
* Removed remark-html-emoji-image for performance | ||
## 2.0.0 (2019-03-28) | ||
_(none)_ | ||
@@ -12,3 +12,2 @@ "use strict"; | ||
const remark_gemoji_to_emoji_1 = __importDefault(require("remark-gemoji-to-emoji")); | ||
const remark_html_emoji_image_1 = __importDefault(require("remark-html-emoji-image")); | ||
const remark_parse_yaml_1 = __importDefault(require("remark-parse-yaml")); | ||
@@ -63,3 +62,2 @@ const remark_shortcodes_1 = __importDefault(require("remark-shortcodes")); | ||
remark_gemoji_to_emoji_1.default, | ||
[remark_html_emoji_image_1.default, { base: 'https://github.com/images/icons/emoji/' }], | ||
misc_1.infoStringToAttr, | ||
@@ -66,0 +64,0 @@ [remark_custom_blocks_plugin_1.default, remark_custom_blocks_1.customBlocksOptions], |
@@ -6,4 +6,7 @@ "use strict"; | ||
*/ | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const spaceSeparated = require('space-separated-tokens'); | ||
const space_separated_tokens_1 = __importDefault(require("space-separated-tokens")); | ||
function escapeRegExp(str) { | ||
@@ -118,3 +121,3 @@ return str.replace(/[-[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); | ||
} | ||
const classList = spaceSeparated.parse(potentialBlock.classes || ''); | ||
const classList = space_separated_tokens_1.default.parse(potentialBlock.classes || ''); | ||
return add({ | ||
@@ -121,0 +124,0 @@ type: `${blockType}CustomBlock`, |
@@ -6,3 +6,2 @@ import headings from '@rigor789/remark-autolink-headings'; | ||
import gemojiToEmoji from 'remark-gemoji-to-emoji'; | ||
import htmlEmojiImage from 'remark-html-emoji-image'; | ||
import parseFrontmatter from 'remark-parse-yaml'; | ||
@@ -51,3 +50,2 @@ import shortcodes from 'remark-shortcodes'; | ||
gemojiToEmoji, | ||
[htmlEmojiImage, { base: 'https://github.com/images/icons/emoji/' }], | ||
infoStringToAttr, | ||
@@ -54,0 +52,0 @@ [customBlocks, customBlocksOptions], |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
const spaceSeparated = require('space-separated-tokens'); | ||
import spaceSeparated from 'space-separated-tokens'; | ||
function escapeRegExp(str) { | ||
@@ -8,0 +8,0 @@ return str.replace(/[-[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); |
{ | ||
"name": "@swimlane/docspa-remark-preset", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "Remark preset for DocSPA", | ||
@@ -9,3 +9,3 @@ "main": "dist/main/index.js", | ||
"scripts": { | ||
"clean": "trash dist", | ||
"clean": "rimraf dist", | ||
"build": "npm run clean && npm run build:main && npm run build:module", | ||
@@ -30,3 +30,3 @@ "build:main": "tsc -p tsconfig.json", | ||
"remark": "^12.0.1", | ||
"trash-cli": "^3.1.0", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^26.4.1", | ||
@@ -62,2 +62,3 @@ "ts-node": "^9.0.0", | ||
"remark-stringify": "^9.0.0", | ||
"remark-strip-html": "^1.0.1", | ||
"space-separated-tokens": "^1.1.5", | ||
@@ -64,0 +65,0 @@ "unified": "^9.2.0", |
45465
28
1153
+ Addedremark-strip-html@^1.0.1
+ Addedremark-strip-html@1.0.2(transitive)