Commit Graph

752 Commits

Author SHA1 Message Date
Max Wu e9293b0c30 feat: add TeX mhchem extensions for MathJax
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2021-05-13 23:45:12 +08:00
Yukai Huang ee1230b6f4
Merge pull request #1532 from freitagsrunde/feature/customTocLevel
Set TOC depth freely for every note by using YAML metadata or an option within `[toc]`
2021-05-11 17:30:31 +08:00
Yukai Huang bec877c11c
Merge pull request #1577 from hackmdio/feature/more-editor-modes
Allow more syntax highlight modes in editor
2021-05-11 16:19:22 +08:00
Yukai Huang cfe653152a Allow more syntax highlight modes in cm
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2021-05-11 16:10:48 +08:00
Yukai Huang 025f6d2149
Merge pull request #1625 from pichouk/develop
Add some help strings to Prometheus metrics
2021-05-11 15:56:48 +08:00
Yukai Huang f2912efd25
As vscode-markdownlint behavior
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2021-03-12 10:45:56 +08:00
Yukai Huang f07e3f10b6
Fix invalid range
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2021-03-12 10:45:54 +08:00
Yukai Huang 7caa272175
Provide linter autofixes
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2021-03-12 10:45:54 +08:00
Yukai Huang 452f9ac124
Merge pull request #1650 from hackmdio/bugfix/fix-reveal-markdown-stored-xss
Fix slide mode stored XSS
2021-01-25 16:50:23 +08:00
Yukai Huang 5b4c7ef4bb
Merge pull request #1651 from hackmdio/bugfix/fix-pdf-embed-freeze-on-safari-big-sur
fix: avoid insert embed tag on the main thread which cause Safari on Big Sur freezing
2021-01-25 15:00:57 +08:00
Max Wu 2b9affbc08 fix: code style
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2021-01-21 14:35:16 +08:00
Max Wu 47bab4266b fix: vimeo won't show up due to the jsonp callback data unable be parsed with jQuery
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2021-01-21 14:35:16 +08:00
Max Wu a1e3768f98 fix: avoid insert embed tag on the main thread which cause Safari on Big Sur freezing
upgrade pdfobject to version 2.2.4

Signed-off-by: Max Wu <jackymaxj@gmail.com>
2021-01-21 14:23:45 +08:00
Max Wu c47f0f0c71 fix: remove reveal options of dependencies which allow import user defined resources [Security Issue]
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2021-01-21 13:24:48 +08:00
Max Wu 9291a7670a fix: properly escape reveal markdown script tag with case-insensitive regex [Security Issue]
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2021-01-21 13:24:48 +08:00
Yukai Huang 48f3be8ae8
Merge pull request #1632 from hackmdio/bugfix/fix-xss-in-lightbox-image-attribute
Fix xss issue for image lightbox
2020-12-25 16:21:52 +08:00
Max Wu 568355acf5 fix: properly validate mermaid syntax and handle parse error
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2020-12-21 14:56:48 +08:00
Max Wu 064dfb7865 fix: disable prefer-const lint rule for mermaid block text string
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2020-12-21 14:49:34 +08:00
Yukai Huang 5fee551d69
Fix fretboard title xss issue
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-12-21 14:25:47 +08:00
Max Wu 8d9a9ab0b2 fix: avoid eval string when putting back parsed string of mermaid
where has stored XSS issue

Signed-off-by: Max Wu <jackymaxj@gmail.com>
2020-12-21 14:24:46 +08:00
Yukai Huang 26a2c746d3
Escape attributes in lightbox image
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-12-21 14:10:03 +08:00
Kyâne fabdf36b52
Add some help strings to Prometheus metrics
Signed-off-by: Kyâne <kyane@kyane.fr>
2020-11-19 16:54:49 +01:00
Yukai Huang cebd5e7da9
Merge pull request #1574 from santigl/spellcheck-en-gb-dict
Spellcheck: add en_GB dictionary
2020-09-10 16:14:04 +08:00
Santiago Gil 1585abdb84 Spellcheck: add en_GB dictionary
Signed-off-by: Santiago Gil <santix91@gmail.com>
2020-08-13 23:02:13 +01:00
Yukai Huang cfbae54ef8
Allow specifying option for graphviz
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-08-13 17:46:42 +08:00
Yukai Huang 24de5a54c9
Merge pull request #1559 from hackmdio/feature/update-delete-note-api
Update and delete note api
2020-08-13 15:55:10 +08:00
Yukai Huang 12b8f09d52
Finetune fretboard css
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-08-12 17:21:21 +08:00
Yukai Huang 94aa54b495
Support empty fretboard title
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-08-12 17:19:20 +08:00
James Tsai b3cf98b329 Fix linter
Signed-off-by: James Tsai <jamesscamel@gmail.com>
2020-07-27 18:01:10 +08:00
Yukai Huang 8e72eb5aca
Merge pull request #1548 from hackmdio/feature/list-my-note-api
List-my-note API
2020-07-15 17:13:35 +08:00
Yukai Huang 0b164a0b93
Fix background image ref when urlpath is set
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-07-10 16:16:51 +08:00
Yukai Huang 731cec6966
Revert mdTokens changes
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-07-09 17:25:07 +08:00
Yukai Huang 1adf1221c6 Escape html for table cell
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-07-09 17:14:10 +08:00
Yukai Huang b29d2c0a31 Implement cspreview renderer
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-07-09 17:14:10 +08:00
Max Wu a569881fcf
Merge pull request #1463 from hackmdio/feature/image-lightbox 2020-07-09 16:41:39 +08:00
Raccoon e9cf0431d4
Merge branch 'develop' into feat/mindmap 2020-07-09 15:48:28 +08:00
Yukai Huang e3a6669c7e Larger draggable area
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-07-09 14:01:22 +08:00
Yukai Huang 82253f496f Support keyboard navigation
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-07-09 14:01:22 +08:00
Yukai Huang c22ce8da60 Dark mode
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-07-09 14:01:22 +08:00
Yukai Huang ec01735424 Zoom/drag image
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-07-09 14:01:22 +08:00
Yukai Huang 4219985658 Fix body scrolling in published page
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-07-09 14:01:22 +08:00
Yukai Huang 62bbf928b7 Apply image lightbox only in document image
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-07-09 14:01:22 +08:00
Yukai Huang 619aabf116 Implement simple lightbox
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-07-09 14:01:22 +08:00
Ca Chen b5b0b8be36 not to compress css
Signed-off-by: Ca Chen <kiancaca@gmail.com>
2020-07-02 12:52:19 +08:00
Ca Chen 95947e203f add number system and rwd fretboard
Signed-off-by: Ca Chen <kiancaca@gmail.com>
2020-07-02 12:48:10 +08:00
Ca Chen b957b8bda2 Use brace wrapped param
Signed-off-by: Ca Chen <kiancaca@gmail.com>
2020-07-02 12:48:10 +08:00
Ca Chen aad7dcad95 fix lint errors
Signed-off-by: Ca Chen <kiancaca@gmail.com>
2020-07-02 12:48:10 +08:00
Ca Chen ac7a229b1c fix: css overwritten
Signed-off-by: Ca Chen <kiancaca@gmail.com>
2020-07-02 12:48:10 +08:00
Ca Chen 6f580e9be8 1. mv fretboard path to `public/js/lib/renderer`
2. use `string-loader` instead of `svg-inline-loader`

Signed-off-by: Ca Chen <kiancaca@gmail.com>
2020-07-02 12:48:10 +08:00
Ca Chen 2ea3e59842 init ascii fretboard
Signed-off-by: Ca Chen <kiancaca@gmail.com>
2020-07-02 12:48:10 +08:00