From 85c86c4674ef588a117aab385f968a2517e20fe6 Mon Sep 17 00:00:00 2001 From: Klaus Nielsen <klnie1989@gmail.com> Date: Tue, 10 Jan 2017 15:25:28 +0100 Subject: [PATCH] Added comments --- markdown-editor.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/markdown-editor.html b/markdown-editor.html index 5c38275..18c6759 100644 --- a/markdown-editor.html +++ b/markdown-editor.html @@ -53,12 +53,15 @@ is: 'markdown-editor', properties: { + /** + * The markdown to be rendered + */ markdown: { type: String, notify: true }, /** - * Displaying preview of the markdown. + * Displaying a preview of the markdown when true */ preview: { type: Boolean, @@ -109,6 +112,9 @@ }); }, + /** + * Applies the markdown property to `marked-element` + */ renderMarkdown: function() { this.$.marked.markdown = this.markdown; }