|
@@ -2,9 +2,9 @@ import MarkdownIt from 'markdown-it';
|
|
|
import * as entities from 'entities';
|
|
import * as entities from 'entities';
|
|
|
|
|
|
|
|
import Linker from './PreProcessor/Linker';
|
|
import Linker from './PreProcessor/Linker';
|
|
|
|
|
+import CsvToTable from './PreProcessor/CsvToTable';
|
|
|
import XssFilter from './PreProcessor/XssFilter';
|
|
import XssFilter from './PreProcessor/XssFilter';
|
|
|
|
|
|
|
|
-import Tsv2Table from './LangProcessor/Tsv2Table';
|
|
|
|
|
import Template from './LangProcessor/Template';
|
|
import Template from './LangProcessor/Template';
|
|
|
import PlantUML from './LangProcessor/PlantUML';
|
|
import PlantUML from './LangProcessor/PlantUML';
|
|
|
|
|
|
|
@@ -19,18 +19,16 @@ export default class GrowiRenderer {
|
|
|
|
|
|
|
|
this.preProcessors = [
|
|
this.preProcessors = [
|
|
|
new Linker(crowi),
|
|
new Linker(crowi),
|
|
|
|
|
+ new CsvToTable(crowi),
|
|
|
new XssFilter(crowi),
|
|
new XssFilter(crowi),
|
|
|
];
|
|
];
|
|
|
this.postProcessors = [
|
|
this.postProcessors = [
|
|
|
];
|
|
];
|
|
|
-
|
|
|
|
|
this.markdownItConfigurers = [
|
|
this.markdownItConfigurers = [
|
|
|
new EmojiConfigurer(crowi),
|
|
new EmojiConfigurer(crowi),
|
|
|
new MathJaxConfigurer(crowi),
|
|
new MathJaxConfigurer(crowi),
|
|
|
];
|
|
];
|
|
|
this.langProcessors = {
|
|
this.langProcessors = {
|
|
|
- 'tsv': new Tsv2Table(crowi),
|
|
|
|
|
- 'tsv-h': new Tsv2Table(crowi, {header: true}),
|
|
|
|
|
'template': new Template(crowi),
|
|
'template': new Template(crowi),
|
|
|
'plantuml': new PlantUML(crowi),
|
|
'plantuml': new PlantUML(crowi),
|
|
|
};
|
|
};
|