feat: page display + renderers reorg
This commit is contained in:
		
							
								
								
									
										7
									
								
								server/modules/renderer/markdown-mathjax/definition.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								server/modules/renderer/markdown-mathjax/definition.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| key: markdownMathjax | ||||
| title: Mathjax Pre-Processor | ||||
| description: Pre-parse TeX blocks for Mathjax | ||||
| author: requarks.io | ||||
| dependsOn: | ||||
|   - markdownCore | ||||
| props: {} | ||||
							
								
								
									
										15
									
								
								server/modules/renderer/markdown-mathjax/renderer.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								server/modules/renderer/markdown-mathjax/renderer.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| const mdMathjax = require('markdown-it-mathjax')() | ||||
|  | ||||
| // ------------------------------------ | ||||
| // Markdown - Mathjax Preprocessor | ||||
| // ------------------------------------ | ||||
|  | ||||
| module.exports = { | ||||
|   key: 'markdown/mathjax', | ||||
|   title: 'Mathjax Preprocessor', | ||||
|   dependsOn: [], | ||||
|   props: [], | ||||
|   init (md, conf) { | ||||
|     md.use(mdMathjax) | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user