Sheogorath
9951b7df7c
Fix ToC breaking documents with empty h* elements
...
Right now, the ToC has an undefined variable i that was an index in the
original ToC code. Since the major rewrite in
4fe0620853
it's a recursive function
without this index. The variable `i` was wrongly copied into its current
place from the old code.
This patch replaces the variable `i` with the index of the header
element. Fix the undefined variable problem.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-11-19 18:27:06 +01:00
Sheogorath
df05bff82a
ToC: Some HTML improvements and style fixes
...
The ToC generated broken HTML with unclosed `<li>` tags. This got fixed
as well as some minor optimisation and adding list elements for the
subentries so the elements appear in the ToC while scrolling.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-07-04 21:09:06 +02:00
Sheogorath
cf934a4e51
Ignore h6 headers
...
h6 headers are used for tags in CodiMD. So we should ignore them for the
ToC generation.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-07-04 11:21:15 +02:00
Sheogorath
4fe0620853
Refactor generation of ToC
...
This replaces the existing iterative implementation of the ToC
generation with an recursive one.
This also solves the problem of skipped headers which causes wrong
leveling of them.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-07-04 02:36:47 +02:00
Sheogorath
7681076eb3
Add title attribute in table of contents
...
Right now the full title of an element is may not shown as the space of
the ToC is limited. With this path it'll be shower on hover and this way
provide more useful information.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-03-26 11:20:18 +02:00
Sheogorath
6219962892
Reorganize usage of getAsFile()
...
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-03-18 03:11:28 +01:00
Sheogorath
41bf7cc52f
Fix typo in vedor extension
...
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-03-18 03:10:37 +01:00
Sheogorath
a7935a595a
Allow more detailed configuration of upload mime types
...
Fixes #637
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-01-20 15:16:53 +01:00
Peter Dave Hello
7e3e0edb17
Remove executable permission from static files
2017-04-18 05:01:23 +08:00
Wu Cheng-Han
61dc6dbc15
Add support of abcjs
2017-03-26 20:39:07 +08:00
BoHong Li
5bc642d02e
Use JavaScript Standard Style (part 2)
...
Fixed all fail on frontend code.
2017-03-09 02:41:05 +08:00
Wu Cheng-Han
0bea4da623
Fix out of sync when deleting on same cursor position on several clients
...
from: https://github.com/aullman/opentok-editor/issues/4
2017-02-18 20:11:57 +08:00
Wu Cheng-Han
23a12dd927
Fix for selectionObjects in OT CodeMirror adapter might call on undefined
2017-01-05 00:00:05 +08:00
Wu Cheng-Han
c904083d1f
Remove manual LZString compression for partial socket io event data
2017-01-02 10:52:47 +08:00
Wu Cheng-Han
11d6b24561
Fix codemirror spell checker not considering abbreviation which contain apostrophe in word
2016-12-20 20:34:20 +08:00
Wu Cheng-Han
92f2a4acf0
Remove unused vendor code and add fix related usages
2016-12-19 16:28:59 +08:00
Wu Cheng-Han
c6742e50ee
Remove unused vendor code and add missing dependency
2016-12-19 16:13:56 +08:00
Wu Cheng-Han
dd284a7bd0
Fix textcomplete up side down option not set properly
2016-12-07 01:34:42 +08:00
Wu Cheng-Han
ead48e45e0
Fix header id and text might affects by mathjax tags
2016-11-28 22:15:07 +08:00
Wu Cheng-Han
9f79ed929e
Update to move custom CodeMirror codebase to our own repo and update webpack build config
2016-11-28 01:36:48 +08:00
Wu Cheng-Han
3a305b8258
Update editor other cursor classes and adding option for other cursors features in CodeMirror
2016-11-28 01:20:23 +08:00
Wu Cheng-Han
b43e63dd21
Update to support go in code block syntax highlighting
2016-11-26 22:48:20 +08:00
Wu Cheng-Han
09e6596074
Update to support haskell syntax highlighting in code block
2016-11-18 12:17:37 +08:00
Peter Dave Hello
f8eb8fc9d8
Remove uesless executable permission for static files
2016-11-14 21:13:02 +08:00
Wu Cheng-Han
0b9c177058
Update to move select2 dependency to bower and add its cdn sources
2016-10-23 23:00:42 +08:00
Wu Cheng-Han
d44e830366
Update emoji parser using markdown-it-emoji instead of emojify to solve issue #217
2016-10-18 16:50:58 +08:00
Yukai Huang
2f11706dd2
Merge branch 'master' into webpack-frontend
2016-10-12 18:19:08 +08:00
Wu Cheng-Han
f3d4b55856
Fix getCaretPosition in text complete might get undefined position error
2016-10-12 17:50:01 +08:00
Yukai Huang
91266f1cad
Load more scripts using webpack
2016-10-12 17:03:47 +08:00
Wu Cheng-Han
795ea21191
Update CodeMirror to 5.19.0 and rename jade to pug
2016-10-10 21:15:29 +08:00
Wu Cheng-Han
f6f469d0fe
Update to use modified editor markdown mode to make mathjax expression display correctly
2016-10-10 20:47:06 +08:00
Wu Cheng-Han
73a8a6c32a
Fix OT socket io reconnect should resend last operation
2016-10-10 20:39:02 +08:00
Peter Dave Hello
83ae4751f4
optimize png images using zopflipng
2016-10-10 00:53:54 +08:00
Wu Cheng-Han
a9d7d7438f
Fix sequence-diagram-min.js.map for source file reference and source file not found error
2016-09-18 17:03:17 +08:00
Wu Cheng-Han
42145e4019
Update to support tiddlywiki and mediawiki syntax highlighting in editor
2016-09-18 16:40:51 +08:00
Wu Cheng-Han
a013c9d3bc
Update slide mode to show extra info and support url actions and support disqus via yaml-metadata
2016-08-15 11:25:27 +08:00
Wu Cheng-Han
1490eafdd2
Update CodeMirror to version 5.17.1
2016-07-30 12:25:24 +08:00
Wu Cheng-Han
a14e7953b5
Add support of showing authorship in editor and adjust related styles
2016-07-30 11:28:24 +08:00
Wu Cheng-Han
423dccae0e
Update spell checker to ignore non-english or numeric alphabets
2016-07-13 10:43:19 +08:00
Wu Cheng-Han
cb75424f8e
Update gist-embed to 2.5 and using bower to manage it
2016-07-13 10:40:34 +08:00
Wu Cheng-Han
4734d0ebe1
Add callback feature for gist-embed to be called after ajax complete
2016-07-02 16:15:56 +08:00
Cheng-Han, Wu
71f61b7f84
Update all client dependencies and cdn versions, workaround sequence-diagram svg to be resizable
2016-06-17 16:27:37 +08:00
Cheng-Han, Wu
56b4739e6d
Add back missing support of image size in 0.4.2
2016-06-17 16:04:58 +08:00
Cheng-Han, Wu
3498b9fae9
Workaround CodeMirror won't draw selections outside of the viewport which will cause cursor related element blinking on scrolling
2016-06-17 15:55:51 +08:00
Cheng-Han, Wu
2bff75a9f4
Update highlight.js to version 9.4.0 and use bower dependency
2016-06-04 10:50:53 +08:00
Cheng-Han, Wu
ee3c6b5485
Fix in firefox other client's cursor might disappear or move out of bound
2016-06-01 14:38:59 +08:00
Cheng-Han, Wu
fb70833bc5
Update CodeMirror to version 5.15.3
2016-06-01 14:37:28 +08:00
Cheng-Han, Wu
438cedf882
Fix for help modal css style conflicts
2016-05-15 13:05:31 +08:00
Cheng-Han, Wu
8bf516263c
Update CodeMirror to 5.13.5
2016-04-20 18:11:40 +08:00
Cheng-Han, Wu
0fb70a1487
Support experimental spell checking feature (en-US only), can be enabled by the YAML meta option
2016-04-20 18:09:36 +08:00