Web Component: j-MarkdownPreview
j-MarkdownPreview
This component depends on j-Markdown
component. It uses highlight.js
library for syntax highlight.
- supports syntax highlighting
- supports YouTube, Vimeo and custom iframes
- supports barchart and linechart rendering via ApexCharts
Configuration:
showsecret
{String} a label for displaying of secret (default:Show secret data
)hidesecret
{String} a label to hide of secret (default:Hide secret data
)html
{Boolean} prepares inner HTML (it expects rendered Markdown) with Markdown utilities (syntax, secrets, links, etc.)headlines
{String} a link to methodmethod(headlines)
will be executed when the headlines will be parsed as quick bookmarks
Custom methods:
component.readingtime()
returns approximate reading time in minutescomponent.redraw(jquery_el)
applies syntax highlighting, iframes and charts for theel
element
Author
- Peter Širka petersirka@gmail.com
License
Created
01. may 2018
Updated
31. january 2023
Version
v1
License
https://www.totaljs.com/license/
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com