-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Docsify can not render an embedded #1499
Comments
From the linked issue originally filed in the docsify-tabs repo:
Today we have function(hook, vm) {
hook.beforeEach(function(content, next) {
// Invoked each time before parsing the Markdown file.
// ...
return content;
});
hook.afterEach(function(html, next) {
// Invoked each time after the Markdown file is parsed.
// ...
return html;
});
hook.doneEach(function() {
// Invoked each time after the data is fully loaded, no arguments,
// ...
});
} Offering markdown-specific plugin hooks (e.g. function(hook, vm) {
hook.beforeEach(function() {
// Invoked before loading new page content
// Useful for cleanup/teardown
// ...
});
hook.beforeMarkdown(function(md, next) {
// Invoked before parsing Markdown
// ...
return md;
});
hook.afterMarkdown(function(html, next) {
// Invoked after parsing Markdown
// ...
return html;
});
hook.doneEach(function() {
// Invoked each time after the data is fully loaded, no arguments,
// ...
});
} |
I also encounter this problem, want to know how to solve |
We also ran into this issue with docsify-tabs and wrote our own plugin for tabs: useless-docsify-tabs. It doesn't have as many features as docsify-tabs but it does work when embedded. |
Marking as duplicate of more appropriately named issue: #2373 |
Bug Report
Steps to reproduce
What is current behaviour
When you embedded a .md it is not being rendered.
What is the expected behaviour
When you embedded a .md should be rendered. In this case, tabs should be displayed as when they are inline.
Other relevant information
[ X] Bug does still occur when all/other plugins are disabled?
Your OS: iOS 10.15.7 (19H2)
Node.js version: v14.6.0
npm/yarn version: npm 6.14.7
Browser version: Chrome Version 88.0.4324.146 (Official Build) (x86_64)
Docsify version: docsify@4
Docsify plugins: docsify-tabs@1
Related issue
Please create a reproducible sandbox
https://github.com/fgaule/docsfy-embedded-not-rendering/tree/main/docs
Mention the docsify version in which this bug was not present (if any)
The text was updated successfully, but these errors were encountered: