Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update repo #1

Merged
merged 177 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
b5fb6da
Missing lang attribute
sojinsamuel Aug 12, 2022
a092499
Update js.yml
sashashura Aug 31, 2022
c1c4145
fix merge error, closes #3277
hakimel Sep 14, 2022
4681323
remove doppler
hakimel Sep 24, 2022
fb68f1c
fix getAttribute exception in notes plugin #3285
hakimel Oct 17, 2022
f6f657b
4.4.0
hakimel Oct 17, 2022
8492b82
Gulp livereload: include subfolders to watch for changes in html and md
lolmaus Oct 24, 2022
9f1f778
roll back unintended change to index content
hakimel Nov 17, 2022
7a613a4
Add theme 'dracula'
iiska Nov 19, 2022
7fbe039
Merge pull request #3324 from iiska/theme-dracula
hakimel Dec 7, 2022
4fe3946
Merge pull request #3305 from lolmaus/patch-1
hakimel Dec 7, 2022
df355ec
2023
hakimel Jan 9, 2023
9f629a9
only test one node version
hakimel Jan 9, 2023
6378df4
run tests in node 14
hakimel Jan 10, 2023
2eb6d1e
audit fix
hakimel Jan 10, 2023
a815c7d
spec updates
hakimel Jan 10, 2023
d146c1d
adds jump-to-slide, press G to activate
hakimel Jan 16, 2023
79e9fdf
add jump-to-slide to help overlay, style tweaks
hakimel Jan 16, 2023
282680e
delay slide jumps a few ms
hakimel Jan 16, 2023
b648a56
update hljs 10 > 11.7, fix perf issue in demo presentation caused by …
hakimel Jan 17, 2023
efcc862
jump-to-slide is 1-indexed, falls back on word search
hakimel Jan 17, 2023
60769db
better selection color contrast for black theme
hakimel Jan 17, 2023
fb1fecd
enforce a min length on jump to slide search queries
hakimel Jan 17, 2023
3301d30
fix incorrect condition for jump-to-slide
hakimel Jan 17, 2023
4a1b91a
jump to slide tweak
hakimel Jan 18, 2023
e0ef8db
fix security alerts by upgrading glob-parent #3343
hakimel Jan 18, 2023
9c95411
Merge pull request #3268 from sashashura/patch-1
hakimel Jan 18, 2023
6510916
Merge pull request #3257 from sojinsamuel/patch-1
hakimel Jan 18, 2023
447fefd
scope print styles to .reveal #3348
hakimel Jan 23, 2023
32a1629
Fixes typos
deining Jan 25, 2023
b1a9842
Merge pull request #3356 from deining/fix/typos
hakimel Jan 25, 2023
ae652a8
Correctly strip leading white-space from markdown
jerrykan Feb 2, 2023
ea6b719
Add RFC3986-compliant URL format encoding
Martinomagnifico Feb 13, 2023
7de6ccb
add sortFragmentsOnSync option, makes it possible to avoid unwanted s…
hakimel Feb 16, 2023
dcae8a4
Fix overview spacing for disabled auto layout (#3291)
Proliecan Feb 22, 2023
2cacfc1
remove commented out config
hakimel Feb 22, 2023
1bfc699
Black & White compact themes with verbatim headers. (#3310)
peter-kehl Feb 22, 2023
cd01951
rename high contrast themes, dont change anything else compared to bl…
hakimel Feb 22, 2023
0c9bdea
Merge pull request #3358 from azat-archive/markdown-fix
hakimel Feb 27, 2023
006b348
reduce fragment style specificity, add custom class to reset fragment…
hakimel Mar 7, 2023
724c4fe
build latest css
hakimel Mar 8, 2023
0301ce5
4.5.0
hakimel Apr 13, 2023
0b44308
add ln-start-from for code sections to markdown
flowolf May 12, 2023
bf749ee
add tests
flowolf May 12, 2023
0d699ec
Merge pull request #3409 from flowolf/add-code-line-offset-to-markdown
hakimel May 15, 2023
227f90f
fix code block auto-animate bug that caused unmatched lines to appear…
hakimel May 31, 2023
12f5ba4
auto-slide duration falls back on global setting instead of looking a…
hakimel Jun 16, 2023
c8a7f26
fix issue where fragment-evel autoslide timing was when multiple frag…
hakimel Aug 3, 2023
82d63e0
fixes livereload when using root CLI param
t-fritsch Aug 3, 2023
2dd27b3
ignore node_modules for livereload
t-fritsch Aug 3, 2023
ba20abf
allow theme subfolders
t-fritsch Aug 3, 2023
31174cb
adds ability to override markdown default options
t-fritsch Aug 4, 2023
27ff199
add support for links to the id of an element nested inside slide
t-fritsch Aug 5, 2023
3d1eabb
build
t-fritsch Aug 5, 2023
ae703c3
Merge pull request #3441 from t-fritsch/fix-livereload-with-root-param
hakimel Aug 6, 2023
bddf798
Merge pull request #3442 from t-fritsch/allow-theme-subfolders
hakimel Aug 6, 2023
b66121e
Merge pull request #3444 from t-fritsch/allow-link-to-nested-element-id
hakimel Aug 6, 2023
f4e1a8e
Merge pull request #3443 from t-fritsch/allow-markdown-default-option…
hakimel Aug 6, 2023
da5682c
move markdown default options to top level #3443
hakimel Aug 6, 2023
92ee97f
update markdown default notes separator to ignore inline occurances o…
hakimel Aug 6, 2023
f2b0316
fix scss watch tasks broken on syntax error
t-fritsch Aug 6, 2023
74a5dac
speed up livereload
t-fritsch Aug 6, 2023
b8d97d2
Merge pull request #3446 from t-fritsch/speed-up-livereload
hakimel Aug 9, 2023
e1c1805
Merge pull request #3445 from t-fritsch/fix-scss-watch-tasks
hakimel Aug 9, 2023
5888106
Fix dracula's theme list-style on sub-items
gildasio Aug 16, 2023
a3f71b4
fix typos in variable names
individual-it Aug 22, 2023
af1cd9d
Merge pull request #3453 from JankariTech/fixVariablesTypos
hakimel Aug 22, 2023
9babaa0
Refactored var to let or const, strict equality
grgprarup Aug 22, 2023
bae6de8
Merge pull request #3454 from JankariTech/refactor-vars-and-equality
hakimel Aug 22, 2023
ccbaffc
build md plugin #3454
hakimel Aug 23, 2023
75c0be8
Update demo.html
menotti Aug 24, 2023
2ab0689
Merge pull request #3456 from menotti/master-1
hakimel Aug 24, 2023
064b3c3
Merge pull request #3450 from gildasio/master
hakimel Aug 24, 2023
a1d0cdf
fix code blocks font when printing pdf
t-fritsch Aug 24, 2023
edf6638
Merge pull request #3457 from t-fritsch/fix-print-font-for-code-blocks
hakimel Aug 24, 2023
680cf5e
add start/stopEmbeddedMedia API methods for controlling playback of v…
hakimel Aug 25, 2023
777e2a2
fix dracula li markers
t-fritsch Sep 2, 2023
3a830dd
fix dracula theme li numbering
t-fritsch Sep 2, 2023
81ea116
refactor dracula theme sass code
t-fritsch Sep 2, 2023
03fe25c
Merge pull request #3464 from t-fritsch/fix-dracula-theme-li-marker-c…
hakimel Sep 4, 2023
fc16cc8
add test deck with 500 slides
hakimel Sep 11, 2023
c530746
4.6.0
hakimel Sep 12, 2023
487cc86
fix alpha overlap during scrolled code highlight transitions
hakimel Sep 12, 2023
6aa1eae
foundation for reader mode, activate via 'mode=reader/print' config p…
hakimel Sep 12, 2023
a4b7f9d
4.6.1, remove log
hakimel Sep 13, 2023
f26d315
separate reader mode into individual controller, add scroll triggers …
hakimel Sep 14, 2023
0f27ef4
revert demo changes to index.html
hakimel Sep 14, 2023
eaf5f61
reader mode; deeplink support, presentation scaling, scroll trigger f…
hakimel Sep 14, 2023
4da6f6b
refactoring, fix preload distance
hakimel Sep 14, 2023
07a6cf1
fix empty slide bug when all slides in a stack are hidden via data-vi…
hakimel Sep 15, 2023
cd948d4
Notes plugin: notes from data-notes attribute were not shown
skyboyer Sep 17, 2023
eb01f8f
Merge pull request #3477 from skyboyer/3476-data-notes-does-not-work-…
hakimel Sep 19, 2023
db2523d
add support for aside element notes inside of fragments (fixes #3478)
hakimel Sep 19, 2023
5de7da7
reader mode can be turned off without reload, add Reveal.toggleReader()
hakimel Sep 19, 2023
0861b07
revamped reader mode sticky logic, add option for fullscreen pages
hakimel Sep 20, 2023
f0950ba
rename 'mode' config value to 'view'
hakimel Sep 20, 2023
e49e89a
reader mode supports scroll snapping, sticky pages with scroll trigge…
hakimel Sep 21, 2023
97f2e18
fix preload bug
hakimel Sep 21, 2023
4c9cc89
refactoring, remove unused layout
hakimel Sep 22, 2023
c856fa9
dispatch slidechange events in reader mode
hakimel Sep 25, 2023
88fbfc5
fix incorrect unit for slide-width/height css variable #1263
hakimel Sep 26, 2023
3db2340
fix issues with active slide logic in reader mode, foundational work …
hakimel Oct 5, 2023
899a45d
update api method name
hakimel Oct 5, 2023
42a1844
Support to 'wheel' event listener
quochuy3191313 Oct 6, 2023
ab52d33
add support for responsively activating reader mode via
hakimel Oct 6, 2023
d84aa34
reader mode tests
hakimel Oct 6, 2023
1f1ca3a
refactoring
hakimel Oct 6, 2023
1871824
reader mode; named deeplink support, stay on same slide when reader m…
hakimel Oct 6, 2023
f80ee3b
reader mode progress bar
hakimel Oct 10, 2023
2347991
reader mode progress bar can be dragged to scroll
hakimel Oct 10, 2023
a6abd04
finishing touches on reader mode progress bar
hakimel Oct 10, 2023
2c5a83c
refactoring
hakimel Oct 10, 2023
09f36ad
mobile tweaks
hakimel Oct 11, 2023
122642f
reader progress theming, automatically invert based on slide bg
hakimel Oct 11, 2023
be5d811
convert sass controls spacing to css var, full height reader progress…
hakimel Oct 11, 2023
980b902
disable overview while in reader mode
hakimel Oct 11, 2023
c1b1745
audit fix
hakimel Oct 11, 2023
d802789
more accurate scroll trigger positioning in progress bar
hakimel Oct 12, 2023
198cbc4
reader mode tweaks
hakimel Oct 12, 2023
a7d0916
reader mode accessibility, bug fixes
hakimel Oct 12, 2023
b8b55b8
readerScrollBar -> readerScrollbar
hakimel Oct 12, 2023
7108476
Merge branch 'master' into feature/reader-mode
hakimel Oct 12, 2023
c80b685
Merge pull request #3482 from hakimel/feature/reader-mode
hakimel Oct 12, 2023
28ef437
rebuild assets
hakimel Oct 12, 2023
836967d
prevent extra page at end when printing to pdf, reader mode styling t…
hakimel Oct 13, 2023
c4e322c
don't show reader scroll bar when there is no overflow, reader style …
hakimel Oct 17, 2023
57ce5a5
===
hakimel Oct 17, 2023
c1d64ad
audit fix
hakimel Oct 17, 2023
a903182
add scroll snap points for reader mode scroll triggers
hakimel Oct 18, 2023
cc9a36d
massive reader mode refactor; adds support for auto-animate + snappin…
hakimel Oct 20, 2023
51acc83
major cleanup of reader mode code
hakimel Oct 20, 2023
49c0030
improved reader progress bar visuals in high density
hakimel Oct 20, 2023
ff3244a
reader mode refactoring
hakimel Oct 23, 2023
aa5c03c
reader mode remembers scroll position when reloading
hakimel Oct 23, 2023
5b537aa
fix slide numbers not visible in pdf exports
hakimel Oct 24, 2023
0072845
? keyboard shortcut should not trigger when focus is on an editable e…
hakimel Oct 25, 2023
ff252c9
reader mode now works for embedded decks
hakimel Oct 25, 2023
e46bad3
fix scroll snapping in reader mode compact layout
hakimel Oct 25, 2023
c239642
reader mode -> scroll view, auto-enable below 435px width
hakimel Oct 25, 2023
942be4e
fix scroll view activation in tests
hakimel Oct 25, 2023
c594f9c
not so important
hakimel Oct 25, 2023
cc640a2
not important
hakimel Oct 25, 2023
68efdf6
Merge branch 'master' into mousewheelevents
hakimel Oct 27, 2023
adfa346
Merge pull request #3489 from quochuy/mousewheelevents
hakimel Oct 27, 2023
89bf44b
remove legacy mousewheel listeners #3489
hakimel Oct 27, 2023
2518301
5.0
hakimel Oct 27, 2023
790fd8c
mute video in scroll demo
hakimel Oct 27, 2023
97d73bd
chore: fix typos
Mister-Hope Oct 28, 2023
09b22ce
chore: remove deprecated css declarations
Mister-Hope Oct 28, 2023
73d3f34
chore: bump deps
Mister-Hope Oct 28, 2023
b2d0a3f
Merge pull request #3505 from Mister-Hope/moon
hakimel Oct 29, 2023
b6a3ea8
Merge pull request #3506 from Mister-Hope/typos
hakimel Oct 29, 2023
30eddd9
Merge pull request #3507 from Mister-Hope/deps
hakimel Oct 29, 2023
d14084d
rebuild after deps update
hakimel Oct 29, 2023
eee0a4f
scroll example deck tweaks
hakimel Oct 29, 2023
010f06c
fix speaker view bug, bump version to 5.0.1 #3512
hakimel Oct 30, 2023
9d1c7e2
md plugin api works even if deck isn't available #3517
hakimel Nov 6, 2023
1168056
nil check for deck in md plugin #3517
hakimel Nov 6, 2023
1e1e228
fix issue where background of a future vertical slide is briefly visi…
hakimel Nov 9, 2023
bddeb70
5.0.2
hakimel Nov 9, 2023
3d7d315
jump-to-slide; add support for 'h.v' format, adapat to match slide nu…
hakimel Nov 13, 2023
bbd0d3e
fix exception when stepping backwards through code highlights #3524
hakimel Nov 13, 2023
f33e9d7
bump 5.0.2 version in build files
t-fritsch Nov 20, 2023
339dc70
search plugin; allow searching for any character (was alphanum) #2331…
hakimel Nov 23, 2023
20d9eaf
search plugin; search for whole phrase #2331 #3532
hakimel Nov 23, 2023
a88f38d
Merge pull request #3533 from t-fritsch/bump-5.0.2-version-in-build-f…
hakimel Nov 23, 2023
9d491c6
fix notes in pdf print view #3535
hakimel Nov 24, 2023
bf285af
fix exception when navigating decks on mobile browsers #3539
hakimel Nov 30, 2023
d5896c9
fix broken mobile scroll view navigation where there were fragments s…
hakimel Nov 30, 2023
993b8f3
fix pause/help overlay position in scroll mode (closes #3542)
hakimel Dec 6, 2023
89ab00a
fix: use `setAttribute` instead of `innerHTML` to prevent xss
EastSun5566 Dec 15, 2023
767a67e
Merge pull request #3548 from hackmdio/fix/xss-on-data-background-vid…
hakimel Dec 15, 2023
0e21a2a
rebuild
hakimel Dec 15, 2023
5ee1f72
fix missing backgrounds when scroll view is actived responsively (fix…
hakimel Dec 22, 2023
5248015
2024
hakimel Jan 9, 2024
5d131ce
add support for keyboard navigation in scroll view #3515
hakimel Jan 10, 2024
16f6633
fix xss issue reported by @realansgar, regression from 3dade6117628be…
hakimel Jan 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
33 changes: 20 additions & 13 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
name: tests

on: [push]
on:
- push

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 14.x, 16.x]
node-version:
- 18
- 20

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: npm test
env:
CI: true
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- run: npm install
- run: npm run build --if-present
- run: npm test
env:
CI: true
2 changes: 0 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/test
/examples
.github
.gulpfile
.sass-cache
gulpfile.js
CONTRIBUTING.md
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2011-2022 Hakim El Hattab, http://hakim.se, and reveal.js contributors
Copyright (C) 2011-2024 Hakim El Hattab, http://hakim.se, and reveal.js contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@ Hakim's open source work is supported by <a href="https://github.com/sponsors/ha
</div>
</a>
</td>
<td align="center">
<a href="https://www.doppler.com/?utm_campaign=github_repo&utm_medium=referral&utm_content=revealjs&utm_source=github">
<div>
<img src="https://user-images.githubusercontent.com/629429/151510865-9fd454f1-fd8c-4df4-b227-a54b87313db4.png" width="290" alt="Doppler">
</div>
<b>All your environment variables, in one place</b>
<div>
<sub>Stop struggling with scattered API keys, hacking together home-brewed tools, and avoiding access controls. Keep your team and servers in sync with Doppler.</sup>
</div>
</a>
</td>
</table>
</div>

Expand All @@ -57,5 +46,5 @@ Hakim's open source work is supported by <a href="https://github.com/sponsors/ha

---
<div align="center">
MIT licensed | Copyright © 2011-2022 Hakim El Hattab, https://hakim.se
MIT licensed | Copyright © 2011-2024 Hakim El Hattab, https://hakim.se
</div>
66 changes: 27 additions & 39 deletions css/print/paper.scss
Original file line number Diff line number Diff line change
@@ -1,42 +1,30 @@
/* Default Print Stylesheet Template
by Rob Glazebrook of CSSnewbie.com
Last Updated: June 4, 2008

Feel free (nay, compelled) to edit, append, and
manipulate this file as you see fit. */

@media print {
html:not(.print-pdf) {

background: #fff;
overflow: visible;
width: auto;
height: auto;
overflow: visible;

body {
background: #fff;
font-size: 20pt;
width: auto;
height: auto;
border: 0;
margin: 0 5%;
margin: 0;
padding: 0;
overflow: visible;
float: none !important;
}
}

html:not(.print-pdf) .reveal {
background: #fff;
font-size: 20pt;

.nestedarrow,
.controls,
.fork-reveal,
.share-reveal,
.state-background,
.reveal .progress,
.reveal .backgrounds,
.reveal .slide-number {
.progress,
.backgrounds,
.slide-number {
display: none !important;
}

body, p, td, li {
p, td, li {
font-size: 20pt!important;
color: #000;
}
Expand All @@ -49,7 +37,6 @@
letter-spacing: normal;
}

/* Need to reduce the size of the fonts for printing */
h1 { font-size: 28pt !important; }
h2 { font-size: 24pt !important; }
h3 { font-size: 22pt !important; }
Expand All @@ -74,18 +61,19 @@
margin: 0;
text-align: left !important;
}
.reveal pre,
.reveal table {
pre,
table {
margin-left: 0;
margin-right: 0;
}
.reveal pre code {
pre code {
padding: 20px;
}
.reveal blockquote {
blockquote {
margin: 20px 0;
}
.reveal .slides {

.slides {
position: static !important;
width: auto !important;
height: auto !important;
Expand All @@ -106,7 +94,7 @@

perspective-origin: 50% 50%;
}
.reveal .slides section {
.slides section {
visibility: visible !important;
position: static !important;
width: auto !important;
Expand All @@ -129,48 +117,48 @@
transform: none !important;
transition: none !important;
}
.reveal .slides section.stack {
.slides section.stack {
padding: 0 !important;
}
.reveal section:last-of-type {
.slides section:last-of-type {
page-break-after: avoid !important;
}
.reveal section .fragment {
.slides section .fragment {
opacity: 1 !important;
visibility: visible !important;

transform: none !important;
}

.reveal .r-fit-text {
.r-fit-text {
white-space: normal !important;
}

.reveal section img {
section img {
display: block;
margin: 15px 0px;
background: rgba(255,255,255,1);
border: 1px solid #666;
box-shadow: none;
}

.reveal section small {
section small {
font-size: 0.8em;
}

.reveal .hljs {
.hljs {
max-height: 100%;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-word;
font-size: 15pt;
}

.reveal .hljs .hljs-ln-numbers {
.hljs .hljs-ln-numbers {
white-space: nowrap;
}

.reveal .hljs td {
.hljs td {
font-size: inherit !important;
color: inherit !important;
}
Expand Down
8 changes: 6 additions & 2 deletions css/print/pdf.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* https://revealjs.com/pdf-export/
*/

html.print-pdf {
html.reveal-print {
* {
-webkit-print-color-adjust: exact;
}
Expand Down Expand Up @@ -36,7 +36,6 @@ html.print-pdf {

.reveal pre code {
overflow: hidden !important;
font-family: Courier, 'Courier New', monospace !important;
}

.reveal {
Expand Down Expand Up @@ -71,6 +70,10 @@ html.print-pdf {
page-break-after: always;
}

.reveal .slides .pdf-page:last-of-type {
page-break-after: avoid;
}

.reveal .slides section {
visibility: visible !important;
display: block !important;
Expand Down Expand Up @@ -146,6 +149,7 @@ html.print-pdf {
display: block;
position: absolute;
font-size: 14px;
visibility: visible;
}

/* This accessibility tool is not useful in PDF and breaks it visually */
Expand Down