BoHong Li
80859f6cf7
feat: remove very old history migration method (since 0.2.8)
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2020-01-06 14:19:01 +08:00
Daniel Lublin
db0ee65fc8
fix: correct to singular location
...
Signed-off-by: Daniel Lublin <daniel@lublin.se>
2019-12-01 16:49:28 +01:00
Yukai Huang
f1586c57dd
Fix linter error
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-11-01 16:47:41 +08:00
Yukai Huang
bfc50b8bb9
Update markdownlint & webpack bundling
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-11-01 16:34:13 +08:00
Yukai Huang
75ee5ad255
Merge branch 'develop' into feature/configurable-break-style
2019-11-01 10:27:47 +08:00
Yukai Huang
65ecb6d2ec
Allow to generate lower case header references through the conf… ( #1310 )
...
Allow to generate lower case header references through the config
2019-10-30 14:44:40 +08:00
hoijui
558fa5fcf4
make standard conform [fix]
...
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-29 13:20:18 +01:00
hoijui
aaf9466498
make `headerIds` `const` [fix]
...
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-29 11:57:51 +01:00
hoijui
9742f7d075
fix gfm header link generation with respect to `deduplicatedHeaderId`
...
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-29 10:00:22 +01:00
Max Wu
052c787c0a
fix: table editor key map might conflict with textcomplete keymap
...
and avoid add/remove keymap on every updateActiveState
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2019-10-26 15:02:45 +08:00
hoijui
c4906c0592
linkifyHeaderStyle needs no string-ification; is already str.
...
Co-Authored-By: Yukai Huang <yukaihuangtw@gmail.com>
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-22 17:14:02 +02:00
hoijui
905414d039
Make `id` block-scoped (thanks @Yukaii)
...
Co-Authored-By: Yukai Huang <yukaihuangtw@gmail.com>
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-22 17:14:02 +02:00
hoijui
34c2bfcfc5
Allow to generate lower case header references through the config ( #1305 )
...
This makes the references consistent/compatible with GitHub,
GitLab, Pandoc and many other tools.
This behavior can be enabled in config.json with:
```
"linkifyHeaderStyle": "gfm"
```
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-21 22:17:55 +02:00
hoijui
9e4d07926a
slight doc comment touch-up/simplification [minor]
...
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-21 22:17:55 +02:00
Yukai Huang
56b669a027
Fix meta break setting in slide mode
...
When `RevealMarkdown.initialize` is called, it use `md.render` to render markdown, but no until we parse meta, the md.options.breaks would be default value we set in extra.js.
So this commit move forward the whole meta parsing block. Ensure line break setting changed before `md.render` get called.
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-10-20 14:30:56 +08:00
Yukai Huang
fd155fa74d
Use defaultUseHardbreak config when render
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-10-20 14:30:56 +08:00
Yukai Huang
495b65e3b9
Add defaultUseHardbreak as constants
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-10-20 14:30:55 +08:00
Max Wu
232c8bd870
feat: add toolbar buttons for table tools
...
and hide scrollbar of the toolbar to avoid overlapping the buttons
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2019-10-14 14:14:32 +08:00
Max Wu
02feb973e1
feat: add table tools which extends from @susisu/mte-kernel
...
port of the code from: https://github.com/susisu/mte-demo/blob/master/src/main.js
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2019-10-14 14:14:32 +08:00
Yukai Huang
8d978cd2d0
Fix linting error
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-10-04 23:03:45 +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
df2c0e23b6
Merge pull request #1272 from hackmdio/bugfix/support-empty-spoiler
...
Support empty spoiler container syntax
2019-09-08 01:10:16 +08:00
Yukai Huang
1e00106889
Merge branch 'develop' into feature/markdownlint
2019-09-08 00:50:54 +08:00
Yukai Huang
1a85523ac9
Support empty spoiler container syntax
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-09-08 00:44:38 +08:00
Yukai Huang
e73405b169
Install markdown-it-ruby
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-09-08 00:24:04 +08:00
RyotaK
f26a73213a
Don't accept sandbox attribute
...
Because sandbox is whitelist attribute, attacker will be able to create iframe that has more permission than default.
Signed-off-by: RyotaK <49341894+ry0tak@users.noreply.github.com>
2019-08-21 19:14:46 +09:00
Yukai Huang
d7854cd02c
Make linter happy
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-08-18 21:57:32 +08:00
Yukai Huang
ad5be66206
Add status bar icon to toggle linter
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-08-18 21:57:32 +08:00
Yukai Huang
968e042b05
Cleanup
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-08-18 21:57:32 +08:00
Yukai Huang
31765a9d34
Make message more verbose & tweak style
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-08-18 21:57:32 +08:00
Yukai Huang
2852be0980
Tweak gutter styles
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-08-18 21:57:32 +08:00
Yukai Huang
6ddf872dec
Initial support for markdownlint
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-08-18 21:57:32 +08:00
Max Wu
e89f820542
Feature/support vega lite ( #1251 )
...
Feature/support vega lite
2019-08-06 23:03:37 +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
Max Wu
79e6d3d724
fix(security): potential JSONP callback overwritten
...
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2019-08-06 21:43:28 +08:00
BoHong Li
ff124ab6bf
refactor: fix line after merged develop
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:59:03 +08:00
BoHong Li
4a9b6ceca9
refactor: fix lint on public/js/utils.js
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:56:38 +08:00
BoHong Li
d3fc6f58e3
refactor: fix lint on public/js/slide.js
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:56:37 +08:00
BoHong Li
3505dcb1c8
refactor: fix lint on public/js/index.js
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:56:37 +08:00
BoHong Li
8394ff58e9
refactor: fix lint on public/js/history.js
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:56:36 +08:00
BoHong Li
8ca8484992
refactor: fix lint on public/js/extra.js
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:56:36 +08:00
BoHong Li
be527765bd
refactor: fix lint on public/js/lib/syncscroll.js
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:56:36 +08:00
BoHong Li
cc93ace031
refactor: fix lint on public/js/lib/appState.js
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:56:35 +08:00
BoHong Li
88601302c4
refactor: fix lint on public/js/lib/editor/utils.js
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:56:35 +08:00
BoHong Li
94703dc8b8
refactor: fix lint on public/js/lib/editor/index.js
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:56:33 +08:00
BoHong Li
9f35add97b
refactor: fix lint on public/js/lib/editor/config.js
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:56:32 +08:00
BoHong Li
ab1a3b663e
chore: upgrade spin.js to 4.0.0
...
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-08-04 23:56:24 +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
0c4d0a05e0
feat: add plantuml to support charts textcomplete list
...
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2019-08-03 21:23:28 +08:00
Yukai Huang
6f7de25079
Make details element syncscrollable
...
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-08-03 19:20:44 +08:00