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'
2
2
import deeplyParseHeaders from './deeplyParseHeaders'
3
3
4
4
/**
5
- * Extract heeaders from markdown source content.
5
+ * Extract headers from markdown source content.
6
6
*
7
7
* @param {string } content
8
8
* @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
2
2
3
3
import semver from 'semver'
4
4
import env from './env'
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ class ModuleResolver {
191
191
if ( req . startsWith ( '@' ) ) {
192
192
const pkg = resolveScopePackage ( req )
193
193
if ( pkg ) {
194
- // speicial handling for default org.
194
+ // special handling for default org.
195
195
if ( this . org && pkg . org === this . org ) {
196
196
shortcut = pkg . name . startsWith ( `${ this . type } -` )
197
197
? pkg . name . slice ( this . typePrefixLength )
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import parseEmojis from './parseEmojis'
8
8
// sidebar or title.
9
9
//
10
10
// 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
13
13
// loader, the raw HTML in headers will finally be parsed by Vue-loader.
14
14
// so that we can write HTML/Vue in the header. One exception is the HTML
15
15
// 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 {
13
13
. replace ( rControl , '' )
14
14
// Replace special characters
15
15
. replace ( rSpecial , '-' )
16
- // Remove continous separators
16
+ // Remove continuous separators
17
17
. replace ( / \- { 2 , } / g, '-' )
18
- // Remove prefixing and trailing separtors
18
+ // Remove prefixing and trailing separators
19
19
. replace ( / ^ \- + | \- + $ / g, '' )
20
20
// ensure it doesn't start with a number (#121)
21
21
. replace ( / ^ ( \d ) / , '_$1' )
You can’t perform that action at this time.
0 commit comments