mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(markdown-vetur): trim underline of type
This commit is contained in:
parent
456fc99017
commit
c9e7512809
@ -51,7 +51,7 @@
|
|||||||
"@types/jest": "^25.1.4",
|
"@types/jest": "^25.1.4",
|
||||||
"@vant/eslint-config": "^2.0.0",
|
"@vant/eslint-config": "^2.0.0",
|
||||||
"@vant/markdown-loader": "^2.3.0",
|
"@vant/markdown-loader": "^2.3.0",
|
||||||
"@vant/markdown-vetur": "^2.0.0",
|
"@vant/markdown-vetur": "^2.0.1",
|
||||||
"@vant/stylelint-config": "^1.2.1",
|
"@vant/stylelint-config": "^1.2.1",
|
||||||
"@vant/touch-emulator": "^1.2.0",
|
"@vant/touch-emulator": "^1.2.0",
|
||||||
"@vue/babel-preset-jsx": "^1.1.2",
|
"@vue/babel-preset-jsx": "^1.1.2",
|
||||||
|
@ -1734,10 +1734,10 @@
|
|||||||
markdown-it-anchor "^5.2.5"
|
markdown-it-anchor "^5.2.5"
|
||||||
transliteration "^2.1.7"
|
transliteration "^2.1.7"
|
||||||
|
|
||||||
"@vant/markdown-vetur@^2.0.0":
|
"@vant/markdown-vetur@^2.0.1":
|
||||||
version "2.0.0"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/@vant/markdown-vetur/-/markdown-vetur-2.0.0.tgz#19cb9b089fbd04dfb2b74c3edb497297086229e0"
|
resolved "https://registry.yarnpkg.com/@vant/markdown-vetur/-/markdown-vetur-2.0.1.tgz#cb0c2d33b5e5606e1dc7f3e6531c18b39d6e57a3"
|
||||||
integrity sha512-XcAcVOIUhuYbD5nmKjv4y9WxuP/YytDJi17xn1SwJe2gjIKNMli/gc2oNN2v8npCaCZAaDWpAUTXYy7XefdH9Q==
|
integrity sha512-OhNFTQhCBlK+qIxfyw9unqU77Kf7gd5EsTUXPqg23lALWwpJiVb0IKGwxnYTZ9i7JAzTAho7oIGt7GQ0hhyvow==
|
||||||
dependencies:
|
dependencies:
|
||||||
fast-glob "^3.2.2"
|
fast-glob "^3.2.2"
|
||||||
fs-extra "^9.0.0"
|
fs-extra "^9.0.0"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@vant/markdown-vetur",
|
"name": "@vant/markdown-vetur",
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"description": "simple parse markdown to vue component description for vetur auto-completion",
|
"description": "simple parse markdown to vue component description for vetur auto-completion",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -12,8 +12,9 @@ export function removeVersion(str: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// *boolean* -> boolean
|
// *boolean* -> boolean
|
||||||
|
// _boolean_ -> boolean
|
||||||
export function formatType(type: string) {
|
export function formatType(type: string) {
|
||||||
return type.replace(/\*/g, '');
|
return type.replace(/(^(\*|_))|((\*|_)$)/g, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function normalizePath(path: string): string {
|
export function normalizePath(path: string): string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user