From e7b08b1dfe3f2a2596deb6e2a72bb79805d3708f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 3 Jul 2017 21:39:43 +0200 Subject: feat: Add code block highlighting Theme is configurable --- test/snapshots/app.test.js.md | 46 +++++++++++++++++++++++++++++++++------- test/snapshots/app.test.js.snap | Bin 1236 -> 1550 bytes 2 files changed, 38 insertions(+), 8 deletions(-) (limited to 'test/snapshots') diff --git a/test/snapshots/app.test.js.md b/test/snapshots/app.test.js.md index 99811f9..a595585 100644 --- a/test/snapshots/app.test.js.md +++ b/test/snapshots/app.test.js.md @@ -56,8 +56,18 @@ Generated by [AVA](https://ava.li). ], }, ], - 'rel-urls': {}, - rels: {}, + 'rel-urls': { + '/css/code.css': { + rels: [ + 'stylesheet', + ], + }, + }, + rels: { + stylesheet: [ + '/css/code.css', + ], + }, } ## post @@ -86,8 +96,8 @@ Generated by [AVA](https://ava.li). properties: { content: [ { - html: '
Ut enim blandit volutpat maecenas? Volutpat blandit aliquam etiam erat velit, scelerisque in dictum non, consectetur a erat nam at lectus urna duis convallis convallis tellus, id interdum velit laoreet!
', - value: 'Ut enim blandit volutpat maecenas? Volutpat blandit aliquam etiam erat velit, scelerisque in dictum non, consectetur a erat nam at lectus urna duis convallis convallis tellus, id interdum velit laoreet!', + html: 'Ut enim blandit volutpat maecenas? Volutpat blandit aliquam etiam erat velit, scelerisque in dictum non, consectetur a erat nam at lectus urna duis convallis convallis tellus, id interdum velit laoreet!
#!/usr/bin/env zsh echo this is some shell code if [[ -n $test ]] then echo test passed fi
',
+ value: 'Ut enim blandit volutpat maecenas? Volutpat blandit aliquam etiam erat velit, scelerisque in dictum non, consectetur a erat nam at lectus urna duis convallis convallis tellus, id interdum velit laoreet! #!/usr/bin/env zsh echo this is some shell code if [[ -n $test ]] then echo test passed fi',
},
],
name: [
@@ -102,8 +112,18 @@ Generated by [AVA](https://ava.li).
],
},
],
- 'rel-urls': {},
- rels: {},
+ 'rel-urls': {
+ '/css/code.css': {
+ rels: [
+ 'stylesheet',
+ ],
+ },
+ },
+ rels: {
+ stylesheet: [
+ '/css/code.css',
+ ],
+ },
}
## tags
@@ -158,6 +178,16 @@ Generated by [AVA](https://ava.li).
],
},
],
- 'rel-urls': {},
- rels: {},
+ 'rel-urls': {
+ '/css/code.css': {
+ rels: [
+ 'stylesheet',
+ ],
+ },
+ },
+ rels: {
+ stylesheet: [
+ '/css/code.css',
+ ],
+ },
}
diff --git a/test/snapshots/app.test.js.snap b/test/snapshots/app.test.js.snap
index bbc5c61..e356c77 100644
Binary files a/test/snapshots/app.test.js.snap and b/test/snapshots/app.test.js.snap differ
--
cgit 1.4.1