Markwon/assets/js/8.9dff76ac.js
Dimitry Ivanov b00d0efa9d deploy
2021-01-12 12:50:41 +03:00

1 line
1.6 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{177:function(n,t,e){},202:function(n,t,e){"use strict";var a=e(177);e.n(a).a},209:function(n,t,e){"use strict";e.r(t);var a=e(187),r=e.n(a),o=new r.a.Parser,i=new r.a.HtmlRenderer,s={name:"CommonmarkSandbox",data:function(){return{markdownInput:this.initialMarkdown()}},methods:{initialMarkdown:function(){return"# Header 1\n\n*Hello* __there!__"},processMarkdown:function(n){this.markdownInput=n.target.value}},computed:{markdownHtml:function(){return i.render(o.parse(this.markdownInput))}}},d=(e(202),e(0)),c=Object(d.a)(s,function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",[e("div",{staticClass:"container"},[e("div",{staticClass:"container-item"},[e("textarea",{on:{input:n.processMarkdown}},[n._v(n._s(n.markdownInput))])]),n._v(" "),e("div",{staticClass:"container-item display",domProps:{innerHTML:n._s(n.markdownHtml)}})]),n._v(" "),n._m(0)])},[function(){var n=this.$createElement,t=this._self._c||n;return t("div",{staticClass:"footer"},[t("p",[t("em",[this._v("\n * Please note that this tool can be used to evaluate how commonmark\n will react to certain markdown input. There is no guarantee that results\n here and in an Android application that uses Markwon will be the same.\n Especially if raw HTML is involved.\n ")])]),this._v(" "),t("p",[t("em",[this._v("\n ** For a more sophisticated commonmark sandbox editor\n "),t("a",{attrs:{href:"https://spec.commonmark.org/dingus/"}},[this._v("the dingus")]),this._v(" can be used.\n ")])])])}],!1,null,"7db9e800",null);c.options.__file="CommonmarkSandbox.vue";t.default=c.exports}}]);