Translator for markdown files is dead simple. All the necessary functionality is already defined in the base class. We just implement the abstract method and that's it.
import * as bt from './base-translator'
export class MdTranslator extends bt.Translator {
protected createBlocks() {
let mdFile = this.outputFile.source as bt.OtherFile
this.splitMdFile(mdFile.contents, mdFile.fileName)
}
}
Previous
Β« Translator Base Class
Copyright Β© 2024 Tommi Johtela
Generated by LiTScript
Next
TypeScript Translator Β»