Skip to content

Commit

Permalink
[update] fix unreadable on github directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Koooooo-7 committed Aug 1, 2020
1 parent 8b5bee1 commit eac21a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/write-a-plugin.md
Expand Up @@ -87,7 +87,7 @@ window.$docsify = {
editHtml +
html +
'\n----\n' +
'{content}' +
'Last modified {docsify-update}' +
editHtml
);
});
Expand All @@ -107,8 +107,8 @@ console.log(window.Docsify.version)
Current version: <span id='tip-version'>loading</span>

<script>
document.getElementById('tip-version').innerText = Docsify.version
document.getElementById('tip-version').innerText = Docsify.version
// fix1320 replace the content to show the {docsify-ignore} example in case of being replaced in default.
let text = document.getElementsByClassName("lang-js")[2].innerHTML.replace("{content}", "Last modified {docsify-update}")
let text = document.getElementsByClassName("lang-js")[2].innerHTML.replace(/Last modified .*$'/,"Last modified {docsify-update}")
document.getElementsByClassName("lang-js")[2].innerHTML = text
</script>

0 comments on commit eac21a8

Please sign in to comment.