markdown渲染功能

This commit is contained in:
2024-07-13 13:25:06 +08:00
parent eb50ad480e
commit 7aa5f5643b
6 changed files with 334 additions and 169 deletions

View File

@@ -1,4 +1,5 @@
import mdTemplate from './mdTemplate/mdTemplate.js'
import Services from "./mdTemplate/Services";
function exportData(exportDataModule, pid) {
exportDataModule.markdown = {
@@ -17,7 +18,18 @@ function hander(routers) {
};
}
module.exports = function() {
this.bindHook('export_data', exportData);
this.bindHook('sub_setting_nav', hander);
this.bindHook('interface_tab', function (tabs) {
tabs.mdGen = {
name: 'Markdown',
component: Services
}
})
};