mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-15 02:50:33 +03:00
Update plugin for wrapping sections
This commit is contained in:
parent
b65e29595a
commit
a4925083d4
|
@ -4,8 +4,8 @@
|
||||||
* Based on: https://github.com/luhmann/tufte-markdown
|
* Based on: https://github.com/luhmann/tufte-markdown
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const visit = require('unist-util-visit')
|
import visit from 'unist-util-visit'
|
||||||
const slugify = require('@sindresorhus/slugify')
|
import slugify from '@sindresorhus/slugify'
|
||||||
|
|
||||||
const defaultOptions = {
|
const defaultOptions = {
|
||||||
element: 'section',
|
element: 'section',
|
||||||
|
@ -72,4 +72,4 @@ function remarkWrapSection(userOptions = {}) {
|
||||||
return transformer
|
return transformer
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = remarkWrapSection
|
export default remarkWrapSection
|
||||||
|
|
Loading…
Reference in New Issue
Block a user