Commit Graph

2459 Commits

Author SHA1 Message Date
kamijin_fanta 225e28bdbd support to login with github enterprise
Signed-off-by: kamijin_fanta <kamijin@live.jp>
2019-10-25 15:15:42 +09:00
Max Wu e03a326c26
Merge pull request #1313 from hackmdio/fix/image-upload-permission
fix: image upload caused permission denied error in docker
2019-10-23 01:49:40 +08:00
BoHong Li d0b02af144
fix: wrong permission caused user cannot upload image in docker
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2019-10-23 00:57:54 +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
Yukai Huang eec45c838b
Feature/syntax hilight on PDF (#1308)
Fix syntax highlight on PDF

Co-authored-by: kondouagi <kondouagi@gmail.com>
2019-10-22 19:08:49 +08:00
kondouagi 0dfb8a320d feat: add syntax hilight on pdf
Signed-off-by: kondouagi <kondouagi@gmail.com>
2019-10-22 12:43:09 +09: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 82b5e98f55
Add defaultUseHardbreak environment variable
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2019-10-20 14:32:06 +08: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
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