#include "html.hpp" TexoProducerHTML::TexoProducerHTML(TexoExporter & exporter): TexoProducerStrict(exporter) {} bool TexoProducerHTML::TruePut(char c) { switch (c) { case '<': return exporter.Put("<"); case '>': return exporter.Put(">"); case '&': return exporter.Put("&"); default: return exporter.Put(c); } } bool TexoProducerHTML::StartHeader(int level) { switch (level) { case 1: return exporter.Put("\n
\n"); } bool TexoProducerHTML::StartCode() { return exporter.Put("\n\n"); } bool TexoProducerHTML::CloseQuote() { return exporter.Put("\n
\n"); } bool TexoProducerHTML::CloseCode() { return exporter.Put("\n\n"); } bool TexoProducerHTML::StartParagraph() { return exporter.Put("\n
\n"); } bool TexoProducerHTML::CloseParagraph() { return exporter.Put("\n
\n"); } bool TexoProducerHTML::StartBold() { return exporter.Put(""); } bool TexoProducerHTML::CloseBold() { return exporter.Put(""); } bool TexoProducerHTML::StartItalic() { return exporter.Put(""); } bool TexoProducerHTML::CloseItalic() { return exporter.Put(""); } bool TexoProducerHTML::StartMono() { return exporter.Put(""); }
bool TexoProducerHTML::CloseMono() { return exporter.Put("
"); }
bool TexoProducerHTML::StartStrike() { return exporter.Put("