Skip to content

jcdcdev/jcdcdev.Umbraco.ExtendedMarkdownEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

56 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

jcdcdev.Umbraco.ExtendedMarkdownEditor

Umbraco Marketplace GitHub License NuGet Downloads Project Website

A lightweight custom property editor for Umbraco that sits on top of the default Umbraco.MarkdownEditor.

Features

Property Value Converter

Replaces IHtmlEncodedString with MarkdownValue which contains the following properties

  • Raw - The raw markdown as a string
  • Html - The transformed HTML value
  • Markdown - The Markdig MarkdownDocument

Data Type

Extends the configuration to allow control over the transformation of Markdown to HTML

  • Header Offset - The offset to apply to the header levels
    • For example: -1 would transform # Header 1 to <h2>Header 1</h2>
  • External Links Open In New Tab - Adds target="_blank" to external links

Plug and Play

All existing and future properties using Umbraco.MarkdownEditor will automatically use the new editor.

Removing this package will revert to the default Umbraco.MarkdownEditor, no data loss will occur.

Quick Start

dotnet add package jcdcdev.Umbraco.ExtendedMarkdownEditor

Contributing

Contributions to this package are most welcome! Please read the Contributing Guidelines.

Acknowledgments (thanks!)