Delete assets/plantuml_codeblock_parse.js
This commit is contained in:
parent
2af750dbcc
commit
0c9bd955e4
@ -1,17 +0,0 @@
|
||||
/* Copyright (C) 2020 David Svantesson
|
||||
* MIT License
|
||||
*
|
||||
*/
|
||||
|
||||
function parsePlantumlCodeBlocks(plantumlServer = "http://www.plantuml.com/plantuml", htmlClass = "language-plantuml") {
|
||||
var codeBlocks = document.getElementsByClassName(htmlClass);
|
||||
|
||||
for (var block_i = 0; block_i < codeBlocks.length; block_i++) {
|
||||
block_string = codeBlocks[block_i].innerText
|
||||
//UTF8
|
||||
block_string = unescape(encodeURIComponent(block_string));
|
||||
codeBlocks[block_i].innerHTML = "<img src=\"" + plantumlServer + "/img/" + encode64(zip_deflate(block_string, 9)) + "\">";
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user