|
1 | 1 | # jcdcdev.Umbraco.ExtendedMarkdownEditor |
2 | 2 |
|
3 | | -[](https://marketplace.umbraco.com/package/jcdcdev.umbraco.extendedmarkdowneditor) |
4 | | -[](https://github.com/jcdcdev/jcdcdev.Umbraco.ExtendedMarkdownEditor/blob/main/LICENSE) |
5 | | -[](https://www.nuget.org/packages/jcdcdev.Umbraco.ExtendedMarkdownEditor/) |
| 3 | +[](https://marketplace.umbraco.com/package/jcdcdev.Umbraco.ExtendedMarkdownEditor) |
| 4 | +[](https://github.com/jcdcdev/jcdcdev.Umbraco.ExtendedMarkdownEditor?tab=MIT-1-ov-file) |
| 5 | +[](https://www.nuget.org/packages/jcdcdev.Umbraco.ExtendedMarkdownEditor) |
6 | 6 | [](https://jcdc.dev/umbraco-packages/extended-markdown-editor) |
7 | 7 |
|
8 | | -A lightweight custom property editor for Umbraco that sits on top of the default Umbraco.MarkdownEditor. |
9 | 8 |
|
10 | | -## Features |
11 | | - |
12 | | -### Property Value Converter |
13 | | - |
14 | | -Replaces `IHtmlEncodedString` with `MarkdownValue` which contains the following properties |
15 | | - |
16 | | -- **Raw** - The raw markdown as a string |
17 | | -- **Html** - The transformed HTML value |
| 9 | +A lightweight custom property editor for Umbraco that sits on top of the default Umbraco.MarkdownEditor. |
| 10 | + |
| 11 | +### Plug and Play |
| 12 | + |
| 13 | +All existing and future properties using Umbraco.MarkdownEditor will automatically use the new editor. |
| 14 | + |
| 15 | +Removing this package will revert to the default Umbraco.MarkdownEditor, **no data loss will occur**. |
| 16 | + |
| 17 | +### Data Type |
| 18 | + |
| 19 | +Extends the configuration to allow control over the transformation of Markdown to HTML |
| 20 | + |
| 21 | +- **Header Offset** - The offset to apply to the header levels |
| 22 | + - For example: `-1` would transform `# Header 1` to `<h2>Header 1</h2>` |
| 23 | +- **External Links** Open In New Tab - Adds `target="_blank"` to external links |
| 24 | + |
| 25 | +### Property Value Converter |
| 26 | + |
| 27 | +Replaces `IHtmlEncodedString` with `MarkdownValue` which contains the following properties |
| 28 | + |
| 29 | +- **Raw** - The raw markdown as a string |
| 30 | +- **Html** - The transformed HTML value |
18 | 31 | - **Markdown** - The Markdig MarkdownDocument |
19 | 32 |
|
20 | | -### Data Type |
21 | | - |
22 | | -Extends the configuration to allow control over the transformation of Markdown to HTML |
23 | | - |
24 | | -- **Header Offset** - The offset to apply to the header levels |
25 | | - - For example: `-1` would transform `# Header 1` to `<h2>Header 1</h2>` |
26 | | -- **External Links** Open In New Tab - Adds `target="_blank"` to external links |
27 | | - |
28 | | -### Plug and Play |
29 | | - |
30 | | -All existing and future properties using Umbraco.MarkdownEditor will automatically use the new editor. |
31 | | - |
32 | | -Removing this package will revert to the default Umbraco.MarkdownEditor, **no data loss will occur**. |
33 | | - |
34 | 33 | ## Quick Start |
35 | 34 |
|
36 | | -```csharp |
37 | | -dotnet add package jcdcdev.Umbraco.ExtendedMarkdownEditor |
| 35 | +```csharp |
| 36 | +dotnet add package jcdcdev.Umbraco.ExtendedMarkdownEditor |
38 | 37 | ``` |
39 | 38 |
|
| 39 | + |
| 40 | + |
40 | 41 | ## Contributing |
41 | 42 |
|
42 | | -Contributions to this package are most welcome! Please read |
43 | | -the [Contributing Guidelines](https://github.com/jcdcdev/jcdcdev.Umbraco.ExtendedMarkdownEditor/blob/main/.github/CONTRIBUTING.md). |
| 43 | +Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/jcdcdev.Umbraco.ExtendedMarkdownEditor/contribute) page. |
44 | 44 |
|
45 | | -## Acknowledgments (thanks!) |
| 45 | +## Acknowledgements (Thanks) |
46 | 46 |
|
47 | 47 | - LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter) |
48 | 48 | - jcdcdev - [jcdcdev.Umbraco.PackageTemplate](https://github.com/jcdcdev/jcdcdev.Umbraco.PackageTemplate) |
| 49 | + |
| 50 | + |
| 51 | + |
0 commit comments