Raccoon
620197faf7
Merge pull request #1580 from tamo/master
...
Convert "include" directives to functions
2021-07-09 15:06:06 +08:00
Max Wu
6b8950d235
Merge pull request #1481 from ghost/lang-attr
2021-07-09 14:59:49 +08:00
Max Wu
16a1e82835
feat: upgrade mermaid to version 8.10.2
...
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2021-06-16 19:10:30 +08:00
Yukai Huang
493b86b0de
Bump cdn mermaid version
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2021-01-04 15:11:51 +08:00
Yukai Huang
59fd7e71ad
Update vega cdnjs assets
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-12-23 12:18:27 +08:00
Tamotsu Takahashi
ffac6450ff
Remove the semicolons
...
https://github.com/hackmdio/codimd/pull/1580#issuecomment-690241496
Signed-off-by: Tamotsu Takahashi <ttakah@gmail.com>
2020-09-11 13:33:35 +09:00
Tamotsu Takahashi
3df090302c
Convert "include" directives to functions
...
Signed-off-by: Tamotsu Takahashi <ttakah@gmail.com>
2020-09-10 16:20:45 +09:00
Yukai Huang
5e608a9da8
Fix font loading when urlpath is set
...
Use copy webpack plugin instead. In the old fasion
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-07-10 16:08:45 +08:00
BinotaLIU
2453b2a9be
set lang attr on <html> according to user's choice
...
Signed-off-by: BinotaLIU <binota@binota.org>
2020-04-10 22:03:58 +08:00
Yukai Huang
6ef0d8698a
Install leaflet library
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-02-27 21:51:07 +08:00
Raccoon
06f578e6f8
Merge pull request #1422 from hackmdio/feature/support-vega-lite-code-highlight-svg
...
Feature/support vega lite code highlight svg
2020-02-27 19:06:01 +08:00
Max Wu
0a253a4f32
feat: upgrade vega to 5.9.1, vega-embed to 6.2.2, vega-lite to 4.4.0
...
also update the schema link in the features.md
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2020-02-27 18:20:41 +08:00
Max Wu
0b9037fb11
feat: upgrade reveal.js to 3.9.2
...
remove headjs dependency after 3.8.0 and update lock file
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2020-02-26 22:36:25 +08:00
Max Wu
edd27af26e
feat: upgrade mermaid to 8.4.8
...
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2020-02-26 11:52:09 +08:00
Yukai Huang
caf4ac61e5
Support emojify.css use cdn
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-02-06 14:31:25 +08:00
Yukai Huang
be900d8db6
Fix cdn integrity ( #1284 )
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-10-04 22:59:09 +08:00
Yukai Huang
b2701caba7
Fix viz.js@2 api changes
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-10-04 22:33:23 +08:00
Max Wu
71ea581796
Merge branch 'develop' into feature/support-vega-lite
...
# Conflicts:
# package.json
# public/views/slide.ejs
2019-08-06 22:06:43 +08:00
BoHong Li
1ebf9ca374
chore: upgrade cdn dependencies
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:59:03 +08:00
Max Wu
49c6672b95
feat: add support of vega-lite
...
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2019-08-04 20:16:46 +08:00
Max Wu
a7082633aa
Upgrade mermaid to 8.2.3
...
to avoid XSS inside the svg tag
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2019-07-28 20:04:41 +08:00
Max Wu
1743a97c22
Fix possible MathJax XSS issue [Security Issue]
...
see more at: http://docs.mathjax.org/en/latest/safe-mode.html
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2019-03-03 18:32:58 +08:00
Sheogorath
bcebf1e8d2
Update reveal.js to version 3.7.0
...
There is a new reveal.js version out. As we try to keep up with
upstream, time to integreate it.
This patch updates reveal.js in for CDN-using instances as well as the
ones using the libraries.
Checked that speaker view in slide mode still works, so no CSP change
needed.
https://github.com/hakimel/reveal.js/releases/tag/3.7.0
2d241b9300/lib/csp.js (L72-L74)
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-11-19 22:31:05 +01:00
Claudius
44ffc564da
removing global site layout vars from individual routers, putting them into app.local
...
Signed-off-by: Claudius <opensource@amenthes.de>
2018-11-03 00:52:48 +01:00
Sheogorath
1d452a6ed4
Remove dead package octicon
...
Octicon no longer provides its CSS classes and this way is useless in
CodiMD. Replacing all used classes in the UI and remove it from build
system.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-10-10 23:42:41 +02:00
Sheogorath
5212bbf9c4
Replace font-awesome with fork-awesome
...
This patch replaces font-awesome with its fork called fork-awesome.
Besides the fact that the newer versions of font-awesome can't be
shipped with distros like debian due to license issues, fork-awesome
also provides more FOSS related icons and builds on top of version 4.7.x
of font-awesome, which we used until this patch.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-10-05 21:52:08 +02:00
Sheogorath
1812b1aaca
Update highlight.js
...
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-30 16:52:34 +02:00
Sheogorath
b6e1144627
Update to octicon 4.4.0
...
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-30 16:52:33 +02:00
Sheogorath
04d16e4d6e
Add Print icon to slide view
...
It redirects the user to the print view of the document. I claim that
people should either be smart enough to use ctrl+P or ask someone who
knows how to print a webpage. I don't want to babysit our users.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-24 23:50:38 +02:00
Sheogorath
ed5353d13a
Move polyfill to CDN section
...
We don't support it on CDN false instances, but it doesn't hurt to keep
it in for CDN-enabled instances
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-18 01:26:11 +02:00
Wu Cheng-Han
3c473e60a6
Upgrade reveal.js to 3.6.0 and useCDN option for CSS include
2018-01-29 13:09:52 +08:00
Christoph (Sheogorath) Kern
7de6e3211f
Merge pull request #598 from xxyy/feature/csp
...
Implement basic CSP support
2018-01-22 20:43:46 +01:00
Peter Dave Hello
f896432250
Upgrade mermaid to v7.1.0, fix #600
2017-10-30 00:18:53 +08:00
Literallie
af935e46fc
Externalise trivial inline styles from slide.ejs
...
Dynamic background images need some further work
2017-10-23 23:39:18 +02:00
Literallie
4238b9b3ef
Fix MathJax CSP issues
2017-10-22 00:03:45 +02:00
Literallie
080436aebb
CSP: Add nonce to slide view inline JS
2017-10-22 00:03:45 +02:00
butlerx
e5834c077f
add the ability to set slide theme in slide options
2017-05-31 23:28:43 +01:00
Max Wu
450159a462
Merge pull request #427 from PeterDaveHello/fix-indent
...
Fix indent in views, shouldn't mix tabs with spaces
2017-04-18 10:41:58 +08:00
Peter Dave Hello
5f3fe5c62c
Fix indent in views, shouldn't mix tabs with spaces
2017-04-18 05:24:04 +08:00
Peter Dave Hello
08c0a0392c
Use abcjs on cdnjs, cc @jackycute
2017-04-18 05:19:19 +08:00
Wu Cheng-Han
10a7a9b37e
Update to use CDN css for emojify.js when applicable
2017-03-21 00:27:58 +08:00
Wu Cheng-Han
6c87262bd9
Fix to use minified CDN file source in mermaid
2017-02-02 23:40:55 +08:00
Wu Cheng-Han
d5008b7aeb
Update viz.js and mermaid CDN links
2017-02-02 23:37:20 +08:00
Wu Cheng-Han
a669c201be
Fix template partial path
2017-01-21 14:04:54 +08:00
Wu Cheng-Han
09a7bcbdef
Refactor templates and rearrange its path
2017-01-21 13:08:29 +08:00
Wu Cheng-Han
276d500406
Upgrade dependencies
2016-12-19 16:20:27 +08:00
Wu Cheng-Han
c59b4cb883
Update webpack and slide resource loading to reduce pack size
2016-11-29 00:44:29 +08:00
Wu Cheng-Han
47d5efb29e
Fix slide resource path and style load orders to avoid conflicts
2016-11-29 00:44:15 +08:00
Wu Cheng-Han
efd62bd1ca
Optimize slide page resource packing and load orders, fix possible wrong chunks orders and font awesome version
2016-11-26 23:24:59 +08:00
Wu Cheng-Han
9d4ede4cff
Fix possible XSS in yaml-metadata and turn using ejs escape syntax than external lib [Security Issue]
2016-11-26 22:55:31 +08:00