Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix 1320] the {docsify-updated} in the sample code has been rendered. #1322

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/write-a-plugin.md
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>