From 4e4d18d70b81278b19c62bf92ccec0d8b5be065c Mon Sep 17 00:00:00 2001 From: Christopher Pietsch <cpietsch@gmail.com> Date: Thu, 14 Jun 2018 21:35:37 +0200 Subject: [PATCH] added markdown column for detail --- css/style.css | 3 +-- index.html | 3 +++ js/sidebars.js | 3 +++ js/tags.js | 5 +++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/css/style.css b/css/style.css index b1f2b5b..8c8c99c 100644 --- a/css/style.css +++ b/css/style.css @@ -794,8 +794,7 @@ svg { } .detail a { - float: left; - /* text-decoration: inherit; */ + text-decoration: none; color: #2D2D2D; font-style: normal; } diff --git a/index.html b/index.html index 66091ae..f19a9d5 100644 --- a/index.html +++ b/index.html @@ -150,6 +150,9 @@ This visualization is not optimized for mobiles. Please come back on a Computer. <span v-else-if="entry.type === 'link'"> <a :href="item[entry.source]" target="_blank">Link</a> </span> + <span v-else-if="entry.type === 'markdown'"> + <span v-html="getContent(entry)"></span> + </span> <span v-else> {{ getContent(entry) }} </span> diff --git a/js/sidebars.js b/js/sidebars.js index dd68aac..99b6352 100644 --- a/js/sidebars.js +++ b/js/sidebars.js @@ -23,6 +23,9 @@ var detailVue = new Vue({ if(entry.type === 'keywords') { return this.item[entry.source].join(', ') } + if(entry.type === 'markdown') { + return marked(this.item[entry.source]) + } if(entry.type === 'function') { const column = this.item const func = entry.source diff --git a/js/tags.js b/js/tags.js index b65e822..452f9ec 100644 --- a/js/tags.js +++ b/js/tags.js @@ -314,7 +314,7 @@ function myTagCloud() { chart.filter(filterWords, true); chart.update(); list.highlight(); - list.split(); + list.project() return } @@ -404,7 +404,8 @@ function myTagCloud() { // list.highlight(); list.highlight(); - list.split(); + // list.split(); + list.project() } -- GitLab