Permalink
Browse files

added fullscreen markdown editor with preview

  • Loading branch information...
philmareu committed Jul 15, 2018
1 parent 8054df7 commit 9e45269051ef56c2c53c94a05a0b83a12c7cddee
Showing with 35,159 additions and 16,208 deletions.
  1. +5 −0 package-lock.json
  2. +2 −0 package.json
  3. +17 −0 src/assets/js/scripts.js
  4. +35,098 −16,194 src/assets/js/scripts.min.js
  5. +22 −7 src/views/fields/markdown/field.blade.php
  6. +15 −7 src/views/fields/markdown/scripts.blade.php

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -23,6 +23,8 @@
"codemirror": "^5.39.0",
"datatables.net": "^1.10.16",
"datatables.net-dt": "^1.10.16",
"highlight.js": "^9.12.0",
"marked": "^0.4.0",
"uikit": "^3.0.0-beta.40",
"vue": "^2.5.13"
}
@@ -30,6 +30,23 @@ require('codemirror/mode/javascript/javascript');
require('codemirror/mode/php/php');
require('codemirror/mode/xml/xml');

window.hljs = require('highlight.js');

window.marked = require('marked');
window.marked.setOptions({
highlight: function(code) {
return require('highlight.js').highlightAuto(code).value;
},
pedantic: false,
gfm: true,
tables: true,
breaks: false,
sanitize: false,
smartLists: true,
smartypants: false,
xhtml: false
});

/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
Oops, something went wrong.

0 comments on commit 9e45269

Please sign in to comment.