Commit Graph

447 Commits

Author SHA1 Message Date
John Kristensen ae652a8e4e Correctly strip leading white-space from markdown
If the markdown contains something that is indented by more that the
`leadingTabs`/`leadingWs` then extra white space is incorrectly removed.
ie the following example:

```
    <section data-markdown>
    some text
       indented text
          more indented text
    </section>
```

would result in the following markdown:

```
some text
   indented text
  more indented text
```

We can work around this problem by using a function to generate the
replace value.
2023-02-02 13:27:52 +01:00
hakimel b648a56009 update hljs 10 > 11.7, fix perf issue in demo presentation caused by auto lang detection 2023-01-17 09:12:00 +01:00
hakimel f6f657b627 4.4.0 2022-10-17 09:46:41 +02:00
hakimel fb68f1c389 fix getAttribute exception in notes plugin #3285 2022-10-17 08:51:44 +02:00
hakimel 01efcf2d92 merge support for multiple notes on same slide 2022-09-05 10:47:47 +02:00
hakimel e219184f37 update browserlist from '> 0.5%, IE 11, not dead' to '> 2%, not dead' #2985 2022-08-08 07:58:18 +02:00
Ikko Ashimine a8e9d8cc8a
Fix typo in plugin.js
withing -> within
2022-05-19 12:42:45 +09:00
hakimel 3dade61176 notes plugin only listens for same-origin postmessages to prevent xss 2022-05-12 22:07:48 +02:00
hakimel 4b6ac46cde new attempt at speaker view xss fix 2022-05-12 14:53:40 +02:00
hakimel 0247ae7582 notes plugin allows messsages from current/upcoming slide windows 2022-03-21 10:36:22 +01:00
hakimel 31407082eb fix #3154 2022-03-21 09:59:49 +01:00
Hakim El Hattab db4aa0c2e7
Merge pull request #3019 from dabrahams/patch-3
Correct a comment
2022-03-21 09:41:05 +01:00
Hakim El Hattab 85fbfb26fd
Merge pull request #3020 from dabrahams/patch-4
Call me crazy, but this seems like a typo
2022-03-21 09:40:31 +01:00
Hakim El Hattab 57e5d102d5
Merge pull request #3157 from eric-wieser/patch-1
RevealMath.MathJax3: Allow the skipHtmlTags option to be overriden
2022-03-21 09:25:39 +01:00
hakimel 3077ddbd09 recover support for running speaker view from file:// protocol #3158 2022-03-21 09:19:48 +01:00
Eric Wieser 470aa76894
Allow the skipHtmlTags option to be overriden
The previous logic here was backwards, and did not allow the user to override `options` in the mathjax config structure.
This makes it match how the `startup` and `tex` fields are merged.
2022-03-16 16:26:27 +00:00
hakimel 2a239aedca debounce messages from notes -> main window, fixes #3147 2022-03-09 10:25:30 +01:00
hakimel e325cea6b7 dependency update 2022-02-28 09:57:50 +01:00
hakimel c83c68500f rebuild notes plugin when html changes 2022-02-28 09:19:58 +01:00
r0hanSH 32cdd3b187 Fix DOM XSS 2022-02-26 17:16:18 +05:30
hakimel e33c3c72f9 the speaker view presentation URL can be overridden via (needed for reveal.js docs) 2022-02-25 09:42:44 +01:00
hakimel 1e0cbe6779 reveal.js can now be uninitialized by calling Reveal.destroy() #1145 #3134 2022-02-21 13:41:36 +01:00
hakimel ff20051861 fiv out of sync speaker view after presentation reloads #2822 #3032 2022-02-10 13:28:47 +01:00
hakimel 6b535328c0 note about changes to speaker view requiring plugin rebuild 2022-02-02 09:06:47 +01:00
hakimel ad46e6293c upgrade highlight.js line number plugin, adds support for line number offsets #3050 2021-11-10 21:41:13 +01:00
hakimel 35b67a9f5b katex math rendering; fix broken 2477 delimiter, compatibility with external markdown #2559 2021-11-10 10:20:25 +01:00
hakimel 0ea4193001 add @burgerga's math plugin with MathJax2, MathJax3 and KaTeX support #2559 2021-10-28 13:41:57 +02:00
hakimel 92a0d47237 syntax tweak 2021-10-08 10:30:05 +02:00
hakimel ea14d4a08a beforeHighlight callback 2021-10-08 10:22:55 +02:00
Jens Lechtenbörger 62a85d55f8 Add generated files 2021-10-06 17:51:11 +02:00
Asvin Goel d93cba5581 var -> let 2021-10-04 12:48:42 +02:00
Asvin Goel cc1da8aee6 Remove accidentally added tab 2021-10-04 12:19:06 +02:00
Asvin Goel ca9ce4b592 Allow users to register additional languages via callback 2021-10-04 12:16:00 +02:00
Dave Abrahams 42d5dcab98
Call me crazy, but this seems like a typo 2021-09-28 17:38:08 -07:00
Dave Abrahams c78e28682d
Correct a comment 2021-09-28 12:33:01 -07:00
Jens Lechtenbörger f9ce61e34a Support multiple aside notes elements per slide
So far, multiple notes per slide are only supported if they are
attached to fragments (without fragments, only the first aside notes
element on a slide is displayed).  With this commit, the contents of
all notes on a slide are displayed (except for fragments with notes,
for which, as before, only each fragment's first/single note is
displayed).
2021-09-16 11:56:52 +02:00
Hakim El Hattab b18f12d964 Merge branch 'dev' of github.com:hakimel/reveal.js 2021-07-09 08:22:24 +02:00
Nico Jansen 4d443826ab Update build output for highlightjs 2021-07-06 18:28:07 +02:00
Nico Jansen 20d7c87a2f fix(highlight): allow pre fragments 2021-07-06 18:19:10 +02:00
Hakim El Hattab aab4c0c3cc fix issue with parsing markdown notes inside of non-markdown slide #2970 2021-06-09 14:09:17 +02:00
Hakim El Hattab c2fd760f8f replace deprecated hljs.highlightBlock calls, fix #2958 2021-05-21 09:13:40 +02:00
Hakim El Hattab ac410debf6 rebuild assets 2021-05-20 18:42:31 +02:00
Hakim El Hattab 395356a0b1 update deps & drop node/gulp-sass in order to support node 16 #2959 2021-05-19 21:48:42 +02:00
Hakim El Hattab 56772afa32 update dependencies 2021-05-17 10:05:36 +02:00
Hakim El Hattab 632cc78873 fix errors when no markdown options are provided #2956 2021-05-17 10:02:12 +02:00
Hakim El Hattab 03126c509e
Merge branch 'dev' into plugin-markdown 2021-05-17 09:54:01 +02:00
Ujjwal Sharma 00acc730f0
add animateLists option to markdown plugin
Add an "animateLists" option to the markdown plugin that animates all
lists by default.
2021-05-13 20:03:09 +05:30
Ujjwal Sharma 6884741b94
improve renderer option handling
Don't waste time constructing a renderer then override it if one is
passed into the options object.
2021-05-13 19:58:45 +05:30
Hakim El Hattab 290c251c7e fix default md slide separator not working #2850 2021-02-10 10:34:25 +01:00
Hakim El Hattab 1e70d9fe46 upgrade to node-sass 5.0 (adds support for node 15.x) #2841 2020-11-25 15:06:29 +01:00