fix(v2): remove HTML from heading slug (#2426)

* fix(v2): remove HTML from heading slug

* Fix tests for rightToc
This commit is contained in:
Alexey Pyltsyn 2020-03-21 10:22:55 +03:00 committed by GitHub
parent c50df3003c
commit 9cf3c66917
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 302 additions and 11 deletions

View file

@ -9,9 +9,9 @@ const {getOptions} = require('loader-utils');
const {readFile} = require('fs-extra');
const mdx = require('@mdx-js/mdx');
const emoji = require('remark-emoji');
const slug = require('remark-slug');
const matter = require('gray-matter');
const stringifyObject = require('stringify-object');
const slug = require('./remark/slug');
const rightToc = require('./remark/rightToc');
const DEFAULT_OPTIONS = {