8000 feat: The timing of the `doneEach` hook call for the cover by YiiGuxing · Pull Request #2427 · docsifyjs/docsify · GitHub
[go: up one dir, main page]

Skip to content

feat: The timing of the doneEach hook call for the cover #2427

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

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(test): fix HTML logging
  • Loading branch information
YiiGuxing committed May 30, 2024
commit 837d04af17e7eb4d0532bf02d9005c8c2433841e
6 changes: 3 additions & 3 deletions test/helpers/docsify-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,13 @@ async function docsifyInit(options = {}) {
}

if (htmlArr.length) {
htmlArr.forEach(html => {
for (let html of htmlArr) {
if (settings._logHTML.format !== false) {
html = prettier.format(html, { parser: 'html' });
html = await prettier.format(html, { parser: 'html' });
}

console.log(html);
});
}
} else {
console.warn(`docsify-init(): unable to match selector '${selector}'`);
}
Expand Down
0