zadam
0af6f91d21
exposing blobs in APIs
2023-05-05 22:21:51 +02:00
zadam
41b8f6882c
note content renderer should load reference link titles, fixes #3499
2023-01-08 20:31:55 +01:00
zadam
1b24276a4a
always use template strings instead of string concatenation
2022-12-21 15:19:05 +01:00
zadam
b9632a7814
rename note types to camelCase
2022-12-06 23:01:42 +01:00
zadam
055bd77bd6
Remove "Content of this note cannot be displayed" in the book format, fixes #3301
2022-11-08 23:06:56 +01:00
Charles Dagenais
73ad557784
improve "open" button behaviour for files when in browser
2022-09-21 21:56:59 -04:00
zadam
4fc686bbbc
sanitize note title
2022-07-05 22:40:41 +02:00
Tom
c85f70e197
remove obsolete errorSvg
2022-05-10 13:47:43 +02:00
Tom
3df712b64f
refactor canvas-note to canvas
2022-05-10 13:43:05 +02:00
Tom
83f1a68bfd
fix errorSvg.js path
2022-05-09 16:26:30 +02:00
Tom
9c7f8cf5d8
extract errorSvg
2022-05-09 16:17:37 +02:00
Tom
6bdaf050c5
replace excalidraw.com asset in svg with EXCALIDRAW_ASSET_PATH, clean up code
2022-04-19 14:39:53 +02:00
Tom
e19ddc10d3
make revision and renderer svg to shrink to box but not enlarge
2022-04-19 00:21:29 +02:00
Tom
9771b441ad
missing path2d support for freedawings, remove node-side rendering, allow async getContent()
...
* ## Excalidraw and SVG
* 2022-04-16 - @thfrei
*
* Known issues:
* - excalidraw-to-svg (node.js) does not render any hand drawn (freedraw) paths. There is an issue with
* Path2D object not present in node-canvas library used by jsdom. (See Trilium PR for samples and other issues
* in respective library. Link will be added later). Related links:
* - https://github.com/Automattic/node-canvas/pull/2013
* - https://github.com/google/canvas-5-polyfill
* - https://github.com/Automattic/node-canvas/issues/1116
* - https://www.npmjs.com/package/path2d-polyfill
* - excalidraw-to-svg (node.js) takes quite some time to load an image (1-2s)
* - excalidraw-utils (browser) does render freedraw, however NOT freedraw with background
*
* Due to this issues, we opt to use **only excalidraw in the frontend**. Upon saving, we will also get the SVG
* output from the live excalidraw instance. We will save this **SVG side by side the native excalidraw format
* in the trilium note**.
*
* Pro: we will combat bit-rot. Showing the SVG will be very fast, since it is already rendered.
* Con: The note will get bigger (maybe +30%?), we will generate more bandwith.
* (However, using trilium desktop instance, does not care too much about bandwidth. Size increase is probably
* acceptable, as a trade off.)
2022-04-19 00:21:20 +02:00
Thomas Frei
300f4ad357
remove obsolete comments / code
2022-04-19 00:13:27 +02:00
Tom
7f01032b6d
add support for render excalidraw in book view (copy of note_revision)
...
maybe one should think about extract a function there and make it reusable
2022-04-19 00:13:27 +02:00
Abitofevrything
a7d3dafcf1
Remove logging line ( #2284 )
2021-10-27 19:45:59 +02:00
zadam
8910ae92c7
increasing amount of text rendered in note previous to 2000 (previously 1000) bytes, #2266
2021-10-25 20:01:41 +02:00
zadam
1ad25b063d
change order of ribbon tabs so that type specific ones are in front
2021-10-10 21:47:56 +02:00
zadam
f6776df645
link overflowing with ellipsis
2021-10-10 14:34:54 +02:00
zadam
d02d846024
empty notes in note overview will display the list of children
2021-10-10 14:09:22 +02:00
Abitofevrything
2c450fc72d
Allow HTML nodes in mermaid diagrams ( #2192 )
2021-09-30 20:12:23 +02:00
zadam
291b434d70
added mermaid samples to demo document
2021-09-30 13:17:37 +02:00
zadam
a68fd5ab83
fixes
2021-09-30 13:02:07 +02:00
zadam
af3fd61974
mermaid layout improvements
2021-09-30 10:18:03 +02:00
Abitofevrything
b37bcd294c
Implement mermaid diagrams ( #2187 )
...
* Start implementing mermaid diagrams
* Implement theming for mermaid diagrams
* Add edit tab to mermaid diagrams
* Remove comment
* Render mermaid diagrams in included notes
* Prevent mermaid notes from being removed to consistency checks
2021-09-29 21:54:56 +02:00
zadam
a65eda5e4a
Merge remote-tracking branch 'origin/master' into next
2021-05-15 22:45:28 +02:00
Jules-Bertholet
a410ed1b74
Update KaTeX to v0.13.9 ( #1925 )
...
* Update KaTeX to v0.13.9
* Allow KaTeX commands like \url and \includegraphics
https://katex.org/docs/options.html
2021-05-08 20:58:56 +02:00
zadam
7494491560
Merge remote-tracking branch 'origin/master' into next
...
# Conflicts:
# package-lock.json
# src/public/app/services/note_content_renderer.js
# src/public/stylesheets/style.css
# src/routes/api/files.js
# src/routes/routes.js
2021-04-25 11:14:45 +02:00
zadam
ccac46527c
opened file change detection now useable on all note types
2021-04-24 21:56:44 +02:00
zadam
dcd35b1ea2
fix broken inline PDF viewer, #1833
2021-04-24 20:27:42 +02:00
zadam
6e010dfbd7
fix note preview, closes #1869
2021-04-21 20:14:37 +02:00
zadam
d3cccae2df
implemented audio/video in note content renderer + streaming API #886
2021-04-18 12:40:12 +02:00
zadam
79bb249f3b
implemented audio/video in note content renderer + streaming API #886
2021-04-17 22:35:47 +02:00
zadam
42510fda5c
renamed also cache files/modules
2021-04-16 23:01:56 +02:00
zadam
af5b1021c7
renamed treeCache into froca
2021-04-16 22:57:37 +02:00
zadam
2f58b6b3c8
fix bottom margin/padding styling in tooltip
2021-04-07 21:21:06 +02:00
zadam
3cc93157bf
basic support for audio/video preview in file notes (no seeking)
2021-02-13 23:20:22 +01:00
zadam
a1fb84f14d
unification of tooltip and note list renderers
2020-12-03 22:54:24 +01:00
zadam
1403acd808
Merge remote-tracking branch 'origin/stable'
...
# Conflicts:
# src/public/app/services/note_content_renderer.js
2020-11-08 21:06:48 +01:00
zadam
f988935a33
fixed & refactored opening/downloading file notes
2020-11-05 21:26:24 +01:00
zadam
3d808d638a
Merge remote-tracking branch 'origin/stable'
...
# Conflicts:
# package-lock.json
# package.json
# src/public/app/services/note_content_renderer.js
2020-10-30 15:40:57 +01:00
zadam
82f410f695
fix math rendering in included note and note tooltip, fixes #1340
2020-10-29 21:06:30 +01:00
zadam
37e111d8a9
trim content for grid view
2020-10-25 11:00:27 +01:00
zadam
badb678b69
note list renderer improvements, still WIP
2020-10-08 23:46:48 +02:00
zadam
26dfa1ffdb
activate PDF preview also in server build, fixes #1208
2020-08-27 23:22:36 +02:00
zadam
4e8d1dac67
fixes for rendering PDF previews e.g. in include note
2020-08-10 23:39:17 +02:00
zadam
29cec8112e
fix setup of new document, closes #966
2020-04-14 21:57:42 +02:00