Skip to content

Commit 8b5bee1

Browse files
committed
[fix 1320] code example has been rendered the {docsify-update} configuration.
1 parent 4b02177 commit 8b5bee1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/write-a-plugin.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ window.$docsify = {
8787
editHtml +
8888
html +
8989
'\n----\n' +
90-
'Last modified {docsify-updated} ' +
90+
'{content}' +
9191
editHtml
9292
);
9393
});
@@ -108,4 +108,7 @@ Current version: <span id='tip-version'>loading</span>
108108

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

0 commit comments

Comments
 (0)