Skip to content

Commit

Permalink
v2.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Feb 11, 2020
1 parent 319f6c2 commit 6f31d1d
Show file tree
Hide file tree
Showing 8 changed files with 1,772 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
"keywords": ["showdoc","documents","Api"],
"homepage": "https://github.com/star7th/showdoc",
"version":"v2.5.5",
"version":"v2.6.1",
"license": "Apache-2.0",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"server": window.location.protocol +'//'+ window.location.host + window.location.pathname+ '../server/index.php?s=',
//"lang" :'en'
"lang" :'zh-cn'
}</script><link href=./static/css/app.3f3378a5bf4b9d82d9c1cb8101373cd2.css rel=stylesheet></head><body class=grey-bg><div id=app></div><script type=text/javascript src=./static/js/manifest.26a939aa9419d2906a5d.js></script><script type=text/javascript src=./static/js/vendor.e142ae298b8919d4a6df.js></script><script type=text/javascript src=./static/js/app.7a20fcc6ede20fd4fafb.js></script></body></html>
}</script><link href=./static/css/app.0e0d164c216909f22572e1a1e7407752.css rel=stylesheet></head><body class=grey-bg><div id=app></div><script type=text/javascript src=./static/js/manifest.9f49fedf5c0bb479e457.js></script><script type=text/javascript src=./static/js/vendor.e142ae298b8919d4a6df.js></script><script type=text/javascript src=./static/js/app.1361c8e60927aecf446a.js></script></body></html>

Large diffs are not rendered by default.

22 changes: 21 additions & 1 deletion web/static/editor.md/editormd.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,23 @@
if (typeof ($) === "undefined") {
return ;
}


$.fn.extend({
//tag@a:plantuml
plantuml:function() {
var previewContainer = $(this);
previewContainer.find("pre:has(.lang-plantuml)").each(function(){
var $uml = $(this);
var lines = [];
$uml.find('.lang-plantuml').each(function(){
lines.push($(this).text());
});
var img = '<img src="'+plantuml_imgsrc(lines.join("\n"))+'"><br>'
$uml.replaceWith(img);
});
}
});

/**
* editormd
*
Expand Down Expand Up @@ -1530,6 +1546,8 @@
}

previewContainer.find(".flowchart").flowChart();
//tag@a:plantuml
previewContainer.plantuml();
}

if (settings.sequenceDiagram) {
Expand Down Expand Up @@ -4018,6 +4036,8 @@
{
if (settings.flowChart) {
div.find(".flowchart").flowChart();
//tag@a:plantuml
$(div).plantuml();
}

if (settings.sequenceDiagram) {
Expand Down
Loading

0 comments on commit 6f31d1d

Please sign in to comment.