October 2018
Intermediate to advanced
590 pages
15h 5m
English
Markdown format is popular. It is simple, easy to read, and widely supported. That's why we choose it as the format of the card description.
We will convert the card description written in Markdown format to HTML on the fly so that we do not need to store converted HTML in the database. To implement this feature, we will use the library, Showdown (https://github.com/showdownjs/showdown).
The following is how to use Showdown to support the Markdown format:
<template> <div class="modal" id="cardModal"> ... <div class="description" v-show="description && !editingDescription" v-html="descriptionHtml"></div> ... </div></template><script>...import showdown from 'showdown'showdown.setOption('strikethrough', ...Read now
Unlock full access