Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
這篇文章討論如何透過Aspose.Words來實作Markdown功能。Markdown是一種簡單的方式來格式化普通文字,並可以輕易地轉換成HTML。Aspose.Words支援以下Markdown功能:
Markdown 功能實作主要依循 CommonMark 規格在 Aspose.Words API 中,所有功能皆以對應的風格或直接格式來表現。 這意味著
-粗體和斜體分別表示為 Font.Bold 和 Font.Italic。
本節示範如何透過以下強調來製作一個 markdown 文檔:
Markdown treats asterisks (*) and underscores (_) as indicators of emphasis.
You can write **bold** or *italic* text.
You can also write ***BoldItalic*** text.
接下來這個程式碼片段可用於產生上面所給的 markdown 文檔。
本節示範如何以以下 headings 的形式製作 markdown 文檔:
The following produces headings:
# Heading1
## Heading2
### Heading3
#### Heading4
##### Heading5
###### Heading6
# **Bold Heading1**
以下代碼片段可用於產生上述給定的 markdown 文檔。
本節示範如何根據以下範例產生一份具有塊引言的markdown文件:
We support blockquotes in Markdown:
>*Lorem*
>*ipsum*
>The quotes can be of any level and can be nested:
>>>Quote level 3
>>>
>>>>Nested quote level 4
>
>*Back to first level*
>### Headings are allowed inside Quotes
>
以下程式碼片段可用來產生上面給定的 markdown 文檔。
本節示範如何建立一個包含水平線條的 markdown 文件:
We support Horizontal rules (Thematic breaks) in Markdown:
-----
下面的程式碼片段可用來產生上面給定的 markdown 文檔。
接下來這個程式碼片段會教你如何讀取一個 markdown 文檔。
Aspose.Words API 在儲存文档到 Markdown 格式時提供 MarkdownSaveOptions 類別來指定其他選項。
接下來的程式碼範例示範了如何指定各種不同的Markdown儲存選項。
Aspose.Words API 提供 TableContentAlignment 列舉,定義了將資料排印到表格的對齊方向,同時將資料輸出到 Markdown 文檔。 接下來的程式碼範例說明了如何在表格內對齊內容。
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.