feat: page display + renderers reorg
This commit is contained in:
		| @@ -0,0 +1,7 @@ | ||||
| key: markdownExpandtabs | ||||
| title: Expand Tabs | ||||
| description: Replace tabs with spaces in code blocks | ||||
| author: requarks.io | ||||
| dependsOn: | ||||
|   - markdownCore | ||||
| props: {} | ||||
							
								
								
									
										18
									
								
								server/modules/renderer/markdown-expandtabs/renderer.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								server/modules/renderer/markdown-expandtabs/renderer.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| const mdExpandTabs = require('markdown-it-expand-tabs') | ||||
| const _ = require('lodash') | ||||
|  | ||||
| // ------------------------------------ | ||||
| // Markdown - Expand Tabs | ||||
| // ------------------------------------ | ||||
|  | ||||
| module.exports = { | ||||
|   key: 'markdown/expand-tabs', | ||||
|   title: 'Expand Tabs', | ||||
|   dependsOn: [], | ||||
|   props: ['tabWidth'], | ||||
|   init (md, conf) { | ||||
|     md.use(mdExpandTabs, { | ||||
|       tabWidth: _.toInteger(conf.tabWidth || 4) | ||||
|     }) | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user