@farberg/reveal-template 1.0.45 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/init-reveal.js
CHANGED
|
@@ -22,7 +22,7 @@ const defaultOptions = {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
const externalJsLibs = [
|
|
25
|
-
'node_modules/qrcode/build/qrcode.
|
|
25
|
+
'node_modules/qrcode/build/qrcode.js',
|
|
26
26
|
'node_modules/file-saver/dist/FileSaver.min.js',
|
|
27
27
|
'node_modules/jszip/dist/jszip.min.js',
|
|
28
28
|
'node_modules/reveal.js-plugins/chalkboard/plugin.js'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farberg/reveal-template",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
4
4
|
"homepage": "https://github.com/pfisterer/reveal-template",
|
|
5
5
|
"description": "Reveal.js template for Dennis' lectures",
|
|
6
6
|
"main": "index.js",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"connect": "^3.7.0",
|
|
19
19
|
"file-saver": "^2.0.5",
|
|
20
20
|
"jszip": "^3.7.1",
|
|
21
|
-
"qrcode": "^1.
|
|
22
|
-
"reveal.js": "^4.1
|
|
21
|
+
"qrcode": "^1.5.0",
|
|
22
|
+
"reveal.js": "^4.2.1",
|
|
23
23
|
"reveal.js-plugins": "^4.1.5",
|
|
24
|
-
"serve-static": "^1.14.
|
|
24
|
+
"serve-static": "^1.14.2"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -4,10 +4,16 @@ const dir_tree = {
|
|
|
4
4
|
|
|
5
5
|
deck.on('ready', () => {
|
|
6
6
|
for (let el of deck.getRevealElement().querySelectorAll("[data-prefix-url]")) {
|
|
7
|
+
const convertToInlineCode = el.getAttribute('data-convert-to-inline-code')
|
|
7
8
|
const attribute = el.getAttribute('data-prefix-url')
|
|
8
9
|
const urlPath = window.location.href.split('?')[0]
|
|
9
10
|
const prefix = attribute || urlPath
|
|
10
|
-
|
|
11
|
+
|
|
12
|
+
if (convertToInlineCode) {
|
|
13
|
+
el.outerHTML = `<code>${prefix + el.innerText}</code>`
|
|
14
|
+
} else {
|
|
15
|
+
el.innerText = prefix + el.innerText
|
|
16
|
+
}
|
|
11
17
|
}
|
|
12
18
|
|
|
13
19
|
})
|
|
@@ -77,8 +77,9 @@ export default () => {
|
|
|
77
77
|
if (outdentCode)
|
|
78
78
|
code = outdent(code)
|
|
79
79
|
|
|
80
|
-
const newEl = showCode(el, language, code, showLink ? url : null, outdent)
|
|
81
|
-
highlightPlugin.highlightElement(newEl)
|
|
80
|
+
/* const newEl = */ showCode(el, language, code, showLink ? url : null, outdent)
|
|
81
|
+
//highlightPlugin.highlightElement(newEl)
|
|
82
|
+
highlightPlugin.hljs.highlightAll()
|
|
82
83
|
}).catch(err => {
|
|
83
84
|
showError(el, err)
|
|
84
85
|
})
|
|
@@ -87,7 +88,6 @@ export default () => {
|
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
|
|
90
|
-
|
|
91
91
|
})
|
|
92
92
|
|
|
93
93
|
}
|