Ver código fonte

New approach, paras, headers, blockquotes working, ul wip

main
Rocketsoup 1 ano atrás
pai
commit
b1de09b728
2 arquivos alterados com 644 adições e 310 exclusões
  1. 643
    310
      js/markdown.js
  2. 1
    0
      markdownjs.html

+ 643
- 310
js/markdown.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 1
- 0
markdownjs.html Ver arquivo

7
 		<script>
7
 		<script>
8
 			function onDocumentLoad() {
8
 			function onDocumentLoad() {
9
 				document.getElementById('markdowninput').addEventListener('input', onMarkdownChange);
9
 				document.getElementById('markdowninput').addEventListener('input', onMarkdownChange);
10
+				setTimeout(onMarkdownChange, 0);
10
 			}
11
 			}
11
 			function onMarkdownChange() {
12
 			function onMarkdownChange() {
12
 				let markdown = document.getElementById('markdowninput').value;
13
 				let markdown = document.getElementById('markdowninput').value;

Carregando…
Cancelar
Salvar