Skip to content

Commit

Permalink
[fix 1320] code example has been rendered the {docsify-update} conf…
Browse files Browse the repository at this point in the history
…iguration.
  • Loading branch information
Koooooo-7 committed Jul 31, 2020
1 parent 4b02177 commit 8b5bee1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/write-a-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ window.$docsify = {
editHtml +
html +
'\n----\n' +
'Last modified {docsify-updated} ' +
'{content}' +
editHtml
);
});
Expand All @@ -108,4 +108,7 @@ Current version: <span id='tip-version'>loading</span>

<script>
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}")
document.getElementsByClassName("lang-js")[2].innerHTML = text
</script>

0 comments on commit 8b5bee1

Please sign in to comment.