MarkdownExportAsHtml

MarkdownExportAsHtml enumeration

Consente di specificare gli elementi da esportare in Markdown come HTML grezzo.

[Flags]
public enum MarkdownExportAsHtml

I valori

NomeValoreDescrizione
None0Esporta tutti gli elementi utilizzando la sintassi Markdown senza alcun codice HTML grezzo.
Tables1Esporta le tabelle come HTML grezzo.

Esempi

Mostra come esportare una tabella in Markdown come HTML grezzo.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

builder.Writeln("Sample table:");

// Crea tabella.
builder.InsertCell();
builder.ParagraphFormat.Alignment = ParagraphAlignment.Right;
builder.Write("Cell1");
builder.InsertCell();
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
builder.Write("Cell2");

MarkdownSaveOptions saveOptions = new MarkdownSaveOptions();
saveOptions.ExportAsHtml = MarkdownExportAsHtml.Tables;

doc.Save(ArtifactsDir + "MarkdownSaveOptions.ExportTableAsHtml.md", saveOptions);

Guarda anche