MarkdownLinkExportMode

MarkdownLinkExportMode enumeration

Specifica come i collegamenti vengono esportati in Markdown.

public enum MarkdownLinkExportMode

I valori

NomeValoreDescrizione
Auto0Rileva automaticamente la modalità di esportazione per ogni collegamento.
Inline1Esporta tutti i collegamenti come blocchi in linea.
Reference2Esporta tutti i collegamenti come blocchi di riferimento.

Esempi

Mostra come i collegamenti verranno scritti nel file .md.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertShape(ShapeType.Balloon, 100, 100);

// L'immagine verrà scritta come riferimento:
// ![ref1]
//
// [ref1]: aw_ref.001.png
MarkdownSaveOptions saveOptions = new MarkdownSaveOptions();
saveOptions.LinkExportMode = MarkdownLinkExportMode.Reference;
doc.Save(ArtifactsDir + "MarkdownSaveOptions.LinkExportMode.Reference.md", saveOptions);

// L'immagine verrà scritta in linea:
// ![](aw_inline.001.png)
saveOptions.LinkExportMode = MarkdownLinkExportMode.Inline;
doc.Save(ArtifactsDir + "MarkdownSaveOptions.LinkExportMode.Inline.md", saveOptions);

Guarda anche