Skip to content

Commit

Permalink
add extensions methodes (#2) +semver: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesdevandiere authored Apr 21, 2020
1 parent 7455667 commit 64ec645
Show file tree
Hide file tree
Showing 13 changed files with 521 additions and 1,027 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ DocProject/Help/html
# Click-Once directory
publish/

# output directory
out/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
Expand Down
38 changes: 38 additions & 0 deletions docs/api/Markdown/MarkdownDocumentExtensions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# MarkdownDocumentExtensions

`Namespace: Markdown`

Markdown document extensions.

```csharp
public static class MarkdownDocumentExtensions
```

## Static Methods

| Type | Name | Summary |
| --- | --- | --- |
| `IMarkdownDocument` | AppendBlockquote(this `IMarkdownDocument` document, `String` text) | Creates a blockquote with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendBlockquote(this `IMarkdownDocument` document, `MarkdownInlineElement` text) | Creates a blockquote with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendCode(this `IMarkdownDocument` document, `String` language, `String` code) | Creates a code block with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendCode(this `IMarkdownDocument` document, `String` language, `MarkdownInlineElement` code) | Creates a code block with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendHeader(this `IMarkdownDocument` document, `String` header, `Int32` level) | Creates an header with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendHeader(this `IMarkdownDocument` document, `MarkdownInlineElement` header, `Int32` level) | Creates an header with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendHorizontalRule(this `IMarkdownDocument` document) | Creates an horizontal rule and appends this to the document. |
| `IMarkdownDocument` | AppendHorizontalRule(this `IMarkdownDocument` document, `Char` char) | Creates an horizontal rule and appends this to the document. |
| `IMarkdownDocument` | AppendList(this `IMarkdownDocument` document, `String[]` items) | Creates a list with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendList(this `IMarkdownDocument` document, `IMarkdownListItem[]` items) | Creates a list with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendList(this `IMarkdownDocument` document, `IEnumerable<IMarkdownListItem>` items) | Creates a list with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendList(this `IMarkdownDocument` document, `Char` char, `String[]` items) | Creates a list with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendList(this `IMarkdownDocument` document, `Char` char, `IMarkdownListItem[]` items) | Creates a list with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendList(this `IMarkdownDocument` document, `Char` char, `IEnumerable<IMarkdownListItem>` items) | Creates a list with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendOrderedList(this `IMarkdownDocument` document, `String[]` items) | Creates an ordered list with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendOrderedList(this `IMarkdownDocument` document, `MarkdownTextListItem[]` items) | Creates an ordered list with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendOrderedList(this `IMarkdownDocument` document, `IEnumerable<MarkdownTextListItem>` items) | Creates an ordered list with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendParagraph(this `IMarkdownDocument` document, `String` text) | Creates a paragraph with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendParagraph(this `IMarkdownDocument` document, `MarkdownInlineElement` text) | Creates a paragraph with the specified arguments and appends this to the document. |
| `IMarkdownDocument` | AppendTable(this `IMarkdownDocument` document, `MarkdownTableHeader` header, `IEnumerable<MarkdownTableRow>` rows) | Creates a table with the specified arguments and appends this to the document. |

---

[`< Back`](../)
2 changes: 2 additions & 0 deletions docs/api/Markdown/MarkdownList.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class MarkdownList

| Type | Name | Summary |
| --- | --- | --- |
| `void` | AddItem(`String` item) | Creates an item with the specified string value and adds this at the end of the items list. |
| `void` | AddItem(`MarkdownInlineElement` item) | Creates an item with the specified string value and adds this at the end of the items list. |
| `String` | PrintBulletPoint(`Int32` index) | Prints the bullet point. |
| `String` | ToString() | Returns a string that represents the current markdown list. |

Expand Down
1 change: 1 addition & 0 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [`MarkdownCheckListItem`](Markdown/MarkdownCheckListItem)
- [`MarkdownCode`](Markdown/MarkdownCode)
- [`MarkdownDocument`](Markdown/MarkdownDocument)
- [`MarkdownDocumentExtensions`](Markdown/MarkdownDocumentExtensions)
- [`MarkdownEmoji`](Markdown/MarkdownEmoji)
- [`MarkdownEmphasis`](Markdown/MarkdownEmphasis)
- [`MarkdownHeader`](Markdown/MarkdownHeader)
Expand Down
Binary file removed out/Dawn.Guard.dll
Binary file not shown.
63 changes: 0 additions & 63 deletions out/MarkdownBuilder.deps.json

This file was deleted.

Binary file removed out/MarkdownBuilder.dll
Binary file not shown.
Loading

0 comments on commit 64ec645

Please sign in to comment.