Skip to content

Commit 73e5ba9

Browse files
committed
chore(ci): upstream update
1 parent 9453271 commit 73e5ba9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+25
-39713
lines changed

index.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="apple-mobile-web-app-capable" content="yes" />
6-
<meta name="generator" content="slidesdown 1.0.2" />
7-
<meta content="Slideshows as fast as you can type." name="description" />
6+
<meta name="generator" content="slidesdown 1.1.0" />
87
<link href="https://slidesdown.github.io" rel="canonical" />
9-
<meta content="Slideshows as fast as you can type." property="og:title" />
8+
<meta content="Slidesdown" property="og:title" />
9+
<meta content="Presentations at the speed of Markdown" name="description" />
1010
<meta
11-
content="Slideshows as fast as you can type."
11+
content="Presentations at the speed of Markdown"
1212
property="og:description"
1313
/>
1414
<meta content="https://slidesdown.github.io" property="og:url" />
@@ -51,15 +51,13 @@
5151
{
5252
"imports": {
5353
"@kurkle/color": "/vendor/kurkle/color.esm.js",
54-
"apexcharts": "/vendor/apexcharts/apexcharts.esm.js",
5554
"dompurify": "/vendor/dompurify/purify.es.mjs",
5655
"echarts": "/vendor/echarts/echarts.esm.min.js",
5756
"github-slugger": "/vendor/github-slugger/index.js",
5857
"marked": "/vendor/marked/marked.esm.js",
5958
"marked-base-url": "/vendor/marked-base-url/index.js",
6059
"marked-gfm-heading-id": "/vendor/marked-gfm-heading-id/index.js",
6160
"mermaid": "/vendor/mermaid/mermaid.esm.min.mjs",
62-
"reveal-apexchart": "/vendor/reveal.js-apexchart/plugin.js",
6361
"reveal-chalkboard": "/vendor/reveal.js-plugins/chalkboard/plugin.js",
6462
"reveal-customcontrols": "/vendor/reveal.js-plugins/customcontrols/plugin.js",
6563
"reveal-echarts": "/vendor/reveal.js-echarts/plugin.js",

init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import RevealMath from "reveal-math";
66
import RevealNotes from "reveal-notes";
77
import RevealSearch from "reveal-search";
88
import RevealZoom from "reveal-zoom";
9-
import RevealApexchart from "reveal-apexchart";
109
import RevealECharts from "reveal-echarts";
1110
import RevealMermaid from "reveal-mermaid";
11+
// import RevealApexchart from "reveal-apexchart";
1212
// import RevealChartjs from "reveal-chartjs";
1313
// INFO: non-esm therefore they can't be properly imported:
1414
// import * as PdfExport from "reveal-pdfexport";
@@ -230,7 +230,7 @@ async function main(defaults) {
230230
// Source: https://github.com/rajgoel/reveal.js-plugins/tree/master/anything
231231
// RevealAnything,
232232
// RevealChartjs,
233-
RevealApexchart,
233+
// RevealApexchart,
234234
RevealECharts,
235235
RevealMermaid,
236236
],

learn.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1>
3838
></i>
3939
Slidesdown Loader
4040
</h1>
41-
<h2>Slideshows as fast as you can type.</h2>
41+
<h2>Presentations at the speed of Markdown</h2>
4242
</hgroup>
4343
<nav class="container" style="align-items: center">
4444
<ul>

loader.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
@@ -38,7 +38,7 @@ <h1>
3838
></i>
3939
Slidesdown Loader
4040
</h1>
41-
<h2>Slideshows as fast as you can type.</h2>
41+
<h2>Presentations at the speed of Markdown</h2>
4242
</hgroup>
4343
<nav class="container" style="align-items: center">
4444
<ul>
@@ -71,8 +71,8 @@ <h2>Slideshows as fast as you can type.</h2>
7171
height: 1.5rem;
7272
width: 1.5rem;
7373
background-color: var(--color);
74-
mask-image: url('/icons/github.svg');
75-
-webkit-mask-image: url('/icons/github.svg');
74+
mask-image: url(&quot;/icons/github.svg&quot;);
75+
-webkit-mask-image: url(&quot;/icons/github.svg&quot;);
7676
"
7777
></a>
7878
</li>

plugin/slidesdown.js

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,20 @@ const SANITIZE = (string) =>
8181
* http://stackoverflow.com/questions/5690269/disabling-chrome-cache-for-website-development/7000899#answer-11786277
8282
*/
8383
function addAttributeInElement(node, elementTarget, separator) {
84-
const mardownClassesInElementsRegex = new RegExp(separator, "mg");
85-
const mardownClassRegex = new RegExp(
84+
const markdownClassesInElementsRegex = new RegExp(separator, "mg");
85+
const markdownClassRegex = new RegExp(
8686
'([^"= ]+?)="([^"]+?)"|(data-[^"= ]+?)(?=[" ])',
8787
"mg",
8888
);
8989
let nodeValue = node.nodeValue;
9090
let matches,
9191
matchesClass;
92-
if ((matches = mardownClassesInElementsRegex.exec(nodeValue)) !== null) {
92+
if ((matches = markdownClassesInElementsRegex.exec(nodeValue)) !== null) {
9393
const classes = matches[1];
9494
nodeValue = nodeValue.substring(0, matches.index) +
95-
nodeValue.substring(mardownClassesInElementsRegex.lastIndex);
95+
nodeValue.substring(markdownClassesInElementsRegex.lastIndex);
9696
node.nodeValue = nodeValue;
97-
while ((matchesClass = mardownClassRegex.exec(classes)) !== null) {
97+
while ((matchesClass = markdownClassRegex.exec(classes)) !== null) {
9898
if (matchesClass[2]) {
9999
elementTarget.setAttribute(matchesClass[1], matchesClass[2]);
100100
} else {
@@ -158,15 +158,7 @@ function addAttributes(
158158
}
159159
}
160160
if (element.nodeType == Node.COMMENT_NODE) {
161-
if (
162-
addAttributeInElement(
163-
element,
164-
previousElement,
165-
separatorElementAttributes,
166-
) == false
167-
) {
168-
addAttributeInElement(element, section, separatorSectionAttributes);
169-
}
161+
addAttributeInElement(element, section, separatorSectionAttributes);
170162
}
171163
}
172164

@@ -204,9 +196,9 @@ export function buildMarkedConfiguration(markedOptions) {
204196
// TODO: apply img src also to data-preview-image
205197
const img_src_regex =
206198
/((<img[^>]*? src=")([^"]*?)("[^>]*?>)|(<img[^>]*? src=')([^']+?)('[^>]*?>))/gi;
207-
// const isUrl = /^https?:\/\//
208-
// const isAbsolute = /^\//
209-
// const isLocal = /^#/
199+
const isUrl = /^https?:\/\//;
200+
const isAbsolute = /^\//;
201+
const isLocal = /^#/;
210202
const isRelative = /^(\.\.\/|\.\/)/;
211203
const markedConfig = {
212204
...markedOptions,
@@ -224,8 +216,9 @@ export function buildMarkedConfiguration(markedOptions) {
224216
const matchOffset = match[2] ? 0 : 3;
225217
text.push(token.text.substring(last_index, match.index));
226218
const ref = match[3 + matchOffset];
227-
// const needsRebase = !(isUrl.test(ref) || isAbsolute.test(ref) || isLocal.test(ref))
228-
const needsRebase = isRelative.test(ref);
219+
const needsRebase =
220+
!(isUrl.test(ref) || isAbsolute.test(ref) || isLocal.test(ref));
221+
// const needsRebase = isRelative.test(ref);
229222
if (needsRebase) {
230223
text.push(
231224
`${match[2 + matchOffset]}${base_url}${match[3 + matchOffset]}${
@@ -292,10 +285,6 @@ function codeHandler(code, language) {
292285
return `<div data-mermaid-id="mermaid-${DIAGRAM_COUNTER}" data-mermaid="${
293286
btoa(code)
294287
}"></div>`;
295-
} else if (language === "apexchart") {
296-
return `<div style="width: clamp(100px, 100%, 100vw); height: clamp(100px, 100%, 100vh);" data-apexchart=${
297-
btoa(code)
298-
}></div>`;
299288
} else if (language === "echarts") {
300289
return `<div style="width: 100px; height: 100px; width: clamp(100px, 100%, 100vw); height: clamp(100px, 100%, 100vh);" data-echarts=${
301290
btoa(code)

vendor/apexcharts/apexcharts.amd.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

vendor/apexcharts/apexcharts.common.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)