File tree Expand file tree Collapse file tree 3 files changed +36
-13
lines changed Expand file tree Collapse file tree 3 files changed +36
-13
lines changed Original file line number Diff line number Diff line change 1
1
build :
2
2
@ ./ panvimdoc.sh " --project-name" " panvimdoc" " --input-file" " doc/panvimdoc.md" " --vim-version" " NVIM v0.8.0" " --toc" " true" " --description" " " " --dedup-subheadings" " true" " --demojify" " false" " --treesitter" " true" " --ignore-rawblocks" " true" " --doc-mapping" " false" " --doc-mapping-project-name" " true" --shift-heading-level-by 0 --increment-heading-level-by 0
3
+
4
+ test :
5
+ julia --project -e ' using Pkg; Pkg.test()'
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ function string.ends_with(str, ends)
16
16
end
17
17
18
18
local function cleanup (elem )
19
+ -- Don't touch code blocks
20
+ if elem .t == " Code" or elem .t == " CodeBlock" then
21
+ return elem
22
+ end
19
23
-- get rid of the space after the emoji, reset
20
24
if elem .t == " Space" and prevEmoji then
21
25
prevEmoji = false
Original file line number Diff line number Diff line change 1
1
@testset "demojify" begin
2
- doc = test_pandoc("""
2
+ doc = test_pandoc(
3
+ """
3
4
Hello world :wave:
4
5
5
- ```sh
6
- echo 😎cool # comment
6
+ echo 😎 cool # comment
7
+
8
+ ```lua
9
+ "some/**/glob*"
7
10
```
8
- """; demojify = true)
11
+
12
+ `" some/**/glob*" `
13
+
14
+
15
+ """;
16
+ demojify = true,
17
+ )
9
18
10
19
@test """
11
20
*test.txt* Test Description
@@ -15,22 +24,30 @@ Table of Contents *test-table-of-contents*
15
24
16
25
Hello world
17
26
18
- >sh
19
- echo cool # comment
27
+ echocool # comment
28
+
29
+ >lua
30
+ \"some/**/glob*\"
20
31
<
21
32
33
+ `\" some/**/ glob * \" `
34
+
22
35
Generated by panvimdoc <https://github.com/kdheepak/panvimdoc >
23
36
24
37
vim:tw=78:ts=8:noet:ft=help:norl:
25
38
""" == doc
26
39
27
- doc = test_pandoc("""
28
- Hello world :wave:
40
+ doc = test_pandoc(
41
+ """
42
+ Hello world :wave:
29
43
30
- ```sh
31
- echo 😎cool # comment
32
- ```
33
- """; demojify = false)
44
+ ```sh
45
+ echo 😎cool # comment
46
+ ```
47
+
48
+ """;
49
+ demojify = false,
50
+ )
34
51
35
52
@test """
36
53
*test.txt* Test Description
@@ -63,5 +80,4 @@ Generated by panvimdoc <https://github.com/kdheepak/panvimdoc>
63
80
64
81
vim:tw=78:ts=8:noet:ft=help:norl:
65
82
""" == doc
66
-
67
83
end
You can’t perform that action at this time.
0 commit comments