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功能实现大多遵循Aspose.WordsAPI中的CommonMark规范,所有功能都表示为相应的样式或直接格式。 这意味着
Font.Bold和Font.Italic。HorizontalRule形状的段落。本节演示如何生成一个markdown文档,重点如下:
Markdown treats asterisks (*) and underscores (_) as indicators of emphasis.
You can write **bold** or *italic* text.
You can also write ***BoldItalic***text.
下面的代码片段可用于生成上述markdown文档。
本节演示如何生成标题如下的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.WordsAPI提供MarkdownSaveOptions类以指定其他选项,同时将文档保存为Markdown格式。
下面的代码示例演示了如何指定各种Markdown保存选项。
Aspose.WordsAPI提供TableContentAlignment枚举,它定义对齐方向,以便在导出到Markdown文档时对齐表中的内容。 下面的代码示例演示如何在表内对齐内容。
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.