Raccoon
cc4cec1459
Merge branch 'develop' into feature/custom-note-url-base
...
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-07-24 01:05:56 +08:00
Raccoon
f76f7509e4
fix: multiple errors by custom note url
...
1. revert config refactoring
2. custom note url -> note alias
3. handle error in promise catch
4. adjust modal style
5. return 404 in change note alias api when note not found
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-07-24 01:01:43 +08:00
Raccoon
e7a5ea813a
Merge pull request #1587 from tamo/more-i18n
...
Move HTML-related code from JS to EJS to enable more i18n
2021-07-09 15:08:03 +08:00
Max Wu
4b78202494
Merge pull request #1605 from tamo/patch-1
2021-07-09 15:04:18 +08:00
Max Wu
6b8950d235
Merge pull request #1481 from ghost/lang-attr
2021-07-09 14:59:49 +08:00
nick.chen
d72d6a0f7a
revmoe archivedAlias logic
...
Signed-off-by: nick.chen <nick.chen.sudo@gmail.com>
2021-06-23 01:59:39 +08:00
nick.chen
014790a8eb
Clean code
...
Signed-off-by: nick.chen <nick.chen.sudo@gmail.com>
2021-06-22 03:46:03 +08:00
nick.chen
dab0c6682f
fix linter error
...
Signed-off-by: nick.chen <nick.chen.sudo@gmail.com>
2021-06-22 03:46:03 +08:00
nick.chen
1579f20ccc
create custom-note-url flow
...
Signed-off-by: nick.chen <nick.chen.sudo@gmail.com>
2021-06-22 03:46:03 +08:00
Max Wu
2eefe7706f
fix: strip html tags for gist file, gist line, gist highlight line, gist show loading attrtributes
...
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2021-06-16 19:00:04 +08:00
Max Wu
6966881152
fix: strip html tags for gist id to avoid stored XSS on showing error [Security Issue]
...
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2021-06-16 19:00:04 +08:00
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
TAKAHASHI Tamotsu
ad1bfa6bc6
Update public/js/index.js
...
simplify the regex
suggested by yukaii in #1605
Co-authored-by: Yukai Huang <yukaihuangtw@gmail.com>
Signed-off-by: Tamotsu Takahashi <ttakah@gmail.com>
2021-05-13 11:41:45 +09: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
TAKAHASHI Tamotsu
ac43db80de
Fix matchInContainer false positives
...
The function should match only the beginnings of lines.
For example, see this testcase:
```
:::spoiler
here is a :::
:::
:::
```
The last line should be completed.
Without this patch, the third line is completed and the last is not.
Signed-off-by: Tamotsu Takahashi <ttakah@gmail.com>
2020-09-25 12:38:41 +09:00
Tamotsu Takahashi
dec2f98d9b
Make "Expand all" translatable
...
Move HTML from JS to EJS
I don't know how to register i18n helper to handlebars,
so "export to raw HTML" has not been touched.
You can do the same for html.hbs if you want.
Signed-off-by: Tamotsu Takahashi <ttakah@gmail.com>
2020-09-11 12:51:08 +09:00
Tamotsu Takahashi
66fdf7b49c
Make permission and status translatable
...
Move HTML from JS to EJS.
https://github.com/hackmdio/codimd/issues/1581#issuecomment-683236111
https://github.com/hackmdio/codimd/issues/1581#issuecomment-683431173
Signed-off-by: Tamotsu Takahashi <ttakah@gmail.com>
2020-09-11 12:50:50 +09: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