File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
packages/@vuepress/shared-utils/src Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import LRU from 'lru-cache'
22import deeplyParseHeaders from './deeplyParseHeaders'
33
44/**
5- * Extract heeaders from markdown source content.
5+ * Extract headers from markdown source content.
66 *
77 * @param {string } content
88 * @param {array } include
Original file line number Diff line number Diff line change 1- // Midified from https://github.com/vuejs/vue-cli/blob/dev/packages/@0vue/cli-shared-utils/lib/module.js
1+ // Modified from https://github.com/vuejs/vue-cli/blob/dev/packages/@0vue/cli-shared-utils/lib/module.js
22
33import semver from 'semver'
44import env from './env'
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ class ModuleResolver {
191191 if ( req . startsWith ( '@' ) ) {
192192 const pkg = resolveScopePackage ( req )
193193 if ( pkg ) {
194- // speicial handling for default org.
194+ // special handling for default org.
195195 if ( this . org && pkg . org === this . org ) {
196196 shortcut = pkg . name . startsWith ( `${ this . type } -` )
197197 ? pkg . name . slice ( this . typePrefixLength )
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import parseEmojis from './parseEmojis'
88// sidebar or title.
99//
1010// But header's parsing in the markdown content is done by the markdown
11- // loader based on markdown-it. markdown-it parser will will always keep
12- // HTML in headers, so in VuePress, after being parsed by the markdiwn
11+ // loader based on markdown-it. markdown-it parser will always keep
12+ // HTML in headers, so in VuePress, after being parsed by the markdown
1313// loader, the raw HTML in headers will finally be parsed by Vue-loader.
1414// so that we can write HTML/Vue in the header. One exception is the HTML
1515// wrapped by <code>(markdown token: '`') tag.
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ export = function slugify (str: string): string {
1313 . replace ( rControl , '' )
1414 // Replace special characters
1515 . replace ( rSpecial , '-' )
16- // Remove continous separators
16+ // Remove continuous separators
1717 . replace ( / \- { 2 , } / g, '-' )
18- // Remove prefixing and trailing separtors
18+ // Remove prefixing and trailing separators
1919 . replace ( / ^ \- + | \- + $ / g, '' )
2020 // ensure it doesn't start with a number (#121)
2121 . replace ( / ^ ( \d ) / , '_$1' )
You can’t perform that action at this time.
0 commit comments