Commit Graph

2404 Commits

Author SHA1 Message Date
hoijui 7c5ac3603a allow to define header link generation style via environment var
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-29 10:53:20 +01:00
hoijui c202cca39b also use gfm header generation in test and debug configuraitons
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-29 10:00:34 +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
hoijui 3d5d8e20f7 document `linkifyHeaderStyle` in default.js
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
2019-10-29 09:57:31 +01: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 56cc64e910
Feature/support table tools (#1300)
Feature/support table tools
2019-10-14 14:32:00 +08:00
Max Wu efff8d0a5c feat: update yarn lockfile for mte-kernel
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2019-10-14 14:14:32 +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
Max Wu c9df47daba
Add screenshot to README.md 2019-10-07 17:46:20 +08:00
Max Wu 2eb518691f
Update screenshot.png 2019-10-07 17:41:18 +08:00
Max Wu a83538478f
Update README.md 2019-10-07 17:12:20 +08:00
Max Wu b6f03b4836
Update README.md 2019-10-07 16:49:34 +08:00
Max Wu c024fd5bee
Update for browser badges 2019-10-07 16:41:55 +08:00
Max Wu 545514f107
Merge pull request #1258 from hackmdio/feat/new-dockerfile
feat: add new dockerfile
2019-10-07 16:14:52 +08:00
BoHong Li 1f5b9813cb
feat: add new dockerfile
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-10-07 15:42:03 +08:00
BoHong Li b074b173fb
fix: cdn link
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-10-07 15:42:03 +08:00
Yukai Huang 5d16b9f83d
Fix dependencies upgrade issues (#1293)
Fix dependencies upgrade issues
2019-10-05 16:31:37 +08:00
Yukai Huang 5495880bf5
Update yarn.lock
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-10-05 16:16:43 +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 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
Yukai Huang 2b9750e3b3
Update yarn lockfile (#1288)
Update yarn lockfile
2019-09-30 12:08:23 +08:00
Yukai Huang 0744104f31
Update yarn lockfile
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-09-28 17:53:44 +08:00
Max Wu fdbfb71d97
Add allowAnonymousViews option (#1152)
Add allowAnonymousViews option
2019-09-23 10:17:54 +08:00
TAKIMOTO, Atsushi c7a15ecc66 Add allowAnonymousViews option
resolve #1144
set to `false` to delete `freely`, `editable` and `locked` permission when allowAnonymous is true (default is `true`)
Signed-off-by: hakoai <hakoai64@gmail.com>
2019-09-08 21:55:52 +09: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
Max Wu 8452da1676
Merge pull request #1257 from hackmdio/feature/markdownlint
Support markdownlint
2019-09-08 01:09:00 +08:00
Yukai Huang 1e00106889
Merge branch 'develop' into feature/markdownlint 2019-09-08 00:50:54 +08:00
Max Wu dc29b2e284
Merge pull request #1259 from hackmdio/bugfix/heroku-deployment
Remove BUILD_ASSETS environment variable
2019-09-08 00:49:37 +08:00
Max Wu bc9fc7b483
Merge pull request #1271 from hackmdio/feature/support-markdown-it-ruby
Support markdown-it-ruby syntax
2019-09-08 00:49:02 +08:00
Max Wu 91cff6e6c6
Merge pull request #1261 from hackmdio/feature/emojify-upgrade
Experimental support for customized emojify version
2019-09-08 00:47:35 +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 6a3409f7b7
Upgrade to support customized emojify.js
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-09-08 00:29:49 +08:00
Yukai Huang 01fa05f41c
Update features.md
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-09-08 00:24:05 +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
Max Wu a729a285c0
Merge pull request #1264 from Ry0taK/develop
Remove sandbox attribute
2019-08-22 13:58:24 +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 3bffa18771
Remove BUILD_ASSETS env
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-08-20 10:32:40 +08: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
BoHong Li 85fc41c350
Merge branch 'master' into develop 2019-08-17 00:07:49 +08:00
Yukai Huang 87587bd241
fix heroku one click deployment (#1255)
fix heroku one click deployment
2019-08-14 23:47:08 +08:00