#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"); case 2: return exporter.Put("\n
\n"); case 3: return exporter.Put("\n

\n"); case 4: return exporter.Put("\n

\n"); case 5: return exporter.Put("\n

\n"); default: return exporter.Put("\n

\n"); } } bool TexoProducerHTML::CloseHeader(int level) { switch (level) { case 1: return exporter.Put("\n

\n"); case 2: return exporter.Put("\n\n"); case 3: return exporter.Put("\n\n"); case 4: return exporter.Put("\n\n"); case 5: return exporter.Put("\n\n"); default: return exporter.Put("\n\n"); } } bool TexoProducerHTML::StartQuote() { return exporter.Put("\n

\n"); } bool TexoProducerHTML::CloseQuote() { return exporter.Put("\n

\n"); } bool TexoProducerHTML::StartCode() { 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(""); } bool TexoProducerHTML::CloseStrike() { return exporter.Put(""); } bool TexoProducerHTML::StartUnderline() { return exporter.Put(""); } bool TexoProducerHTML::CloseUnderline() { return exporter.Put(""); } bool TexoProducerHTML::StartLink(const char *link, const char *title) { if (!link) { return true; } bool ok = exporter.Put(""); } bool TexoProducerHTML::CloseLink(const char *link, const char *title) { if (!link) { return true; } return exporter.Put(""); } bool TexoProducerHTML::TruePutImage(const char *src, const char *alt, const char *title) { if (!src) { return true; } bool ok = exporter.Put("") && exporter.Put(alt);
    }
    if (title) {
        ok = ok && exporter.Put(""); } bool TexoProducerHTML::TruePutHorizontalRule() { return exporter.Put("\n
\n"); }