# docsify-drawio **Repository Path**: dongzhongzhidong/docsify-drawio ## Basic Information - **Project Name**: docsify-drawio - **Description**: 支持 drawio 文件的 docsify 插件 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-06-26 - **Last Updated**: 2022-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # docsify-drawio This is a docsify plugin that can convert drawio xml Data to a picture in your docs. ## First - write your drawio File Path in Your Markdown File ```md [filename](https://cdn.jsdelivr.net/npm/docsify-drawio/test.drawio ':include :type=code') ``` ## Second - Add Some Script in your docsify html File. !! It must put after your window.$docsify ```html ``` ## Third - Add A Markdown render function in your $docsify. ```js window.$docsify = { // You just have to copy it to Your own html File markdown: { renderer: { code: function (code, lang) { if (lang === 'drawio') { if (window.drawioConverter) { console.log('drawio 转化中') return window.drawioConverter(code) } else { return `