feat(VantMarkdownVetur): support arguments of events (#10474)

* feat(VantMarkdownVetur): support arguments of events

* fix(vant): fix mistake in readme

* docs(vant): fix ',' to ','

* fix(vant-markdown-vetur): support events arguments

* docs(AddressList): fix mistake

* docs(AddressList): prettier

* docs(Collapse): adjust

* docs(dropdown-menu): adjust

* docs(ImagePreview): adjust

* fix(vant-markdown-vetur): fix format

* fix(vant-markdown-vetur): fix formatter
This commit is contained in:
Nemo Shen
2022-04-10 10:37:02 +08:00
committed by GitHub
parent d5a9202ddf
commit 7ce66c7939
44 changed files with 133 additions and 91 deletions
+4 -2
View File
@@ -25,9 +25,11 @@ function readLine(input: string) {
}
function splitTableLine(line: string) {
line = line.replace('\\|', 'JOIN');
line = line.replace(/\\\|/g, 'JOIN');
const items = line.split('|').map((item) => item.trim().replace('JOIN', '|'));
const items = line
.split('|')
.map((item) => item.trim().replace(/JOIN/g, '|'));
// remove pipe character on both sides
items.pop();