From 2f9e51b5cd7dfafadac90ec896edd365da12a1c8 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 3 Jul 2021 23:07:09 +0200 Subject: viewer: add markdown item handler Extracted from b170f49 (GH PR #304) --- .../components/item_handlers/LdMarkdownViewer.vue | 82 ++++++++++++++++++++++ viewer/src/views/GalleryNavigation.vue | 1 + 2 files changed, 83 insertions(+) create mode 100644 viewer/src/components/item_handlers/LdMarkdownViewer.vue diff --git a/viewer/src/components/item_handlers/LdMarkdownViewer.vue b/viewer/src/components/item_handlers/LdMarkdownViewer.vue new file mode 100644 index 0000000..ecebbcf --- /dev/null +++ b/viewer/src/components/item_handlers/LdMarkdownViewer.vue @@ -0,0 +1,82 @@ + + + + + + + diff --git a/viewer/src/views/GalleryNavigation.vue b/viewer/src/views/GalleryNavigation.vue index fdd3922..200637e 100644 --- a/viewer/src/views/GalleryNavigation.vue +++ b/viewer/src/views/GalleryNavigation.vue @@ -44,6 +44,7 @@ export default class GalleryNavigation extends Vue { directory: "ld-directory-viewer", picture: "ld-picture-viewer", plaintext: "ld-plain-text-viewer", + markdown: "ld-markdown-viewer", pdf: "ld-pdf-viewer", video: "ld-video-viewer", audio: "ld-audio-viewer", -- cgit v1.2.3