1 vote

MarkdownDeep Editor

The "MarkdownDeep Editor for Umbraco" is a data-type that allows you to write your content using MarkdownDeep syntax.

Configuration options are available to enable/disable the EditorUI.

This package is a fork of "Markdown Editor for Umbraco" developed by "leekelleher" (visit http://markdown4umb.codeplex.com/).

"MarkdownDeep Editor for Umbraco" uses MarkdownDeep instead of MarkdownSharp, that adds table feature with alignment, colspan and head-style attributes to any table cell.

MarkdownDeep Editor allow detailed level of customization. You can enable/disable:

  • safeMode: only safe markup
  • extraMode: enables MarkdownExtra extensions
  • markdownInHtml: allow markdown syntax in nested html
  • autoHeadingIDs: automatically generate IDs for headings
  • newWindowForExternalLinks: new window for external links (target=_blank)
  • newWindowForLocalLinks: new window for local links (target=_blank)
  • noFollowLinks: add rel=nofollow to all external links
It is possibile to utilize custom Markdown formatter: add class in App_Code folder. This class will be inherits from Xilium.MarkdownDeepEditor4Umbraco.TextFormatter.TextFormatterBase, with "DefaultTextFormatter" attribute declaration.
example:
using Xilium.MarkdownDeepEditor4Umbraco.TextFormatter;
[DefaultTextFormatter()]
public class MyMDDFormatter : TextFormatterBase {
private Xilium.MarkdownDeep.Markdown _instance = null;

public MyMDDFormatter(DataEditor dataEditor, Options options)
: base(dataEditor, options) {

this._instance = new Xilium.MarkdownDeep.Markdown();
this._instance.SafeMode = true;
this._instance.ExtraMode = true;
this._instance.MarkdownInHtml = false;
}

public override string Transform(string value) {
return this._instance.Transform(value);
}
}

 

News in 2.1.0 version:

  • add default css file to render Preview area. It defines titles, paragraph and tables tag.
  • add setting option to define custom className for Editor control.
  • add setting option to define custom css file to import for define custom Preview.

News in 2.1.1 version:

  • updated Xilium.MarkdownDeep.dll.

MarkdownDeep syntax

For a reference to MarkdownDeep and its syntax please visit: https://github.com/Xilium-it/MarkdownDeep

Project page: https://github.com/Xilium-it/MarkdownDeepEditor4Umbraco


Package owner

Flavio Spezi

Flavio Spezi

Flavio has 314 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Flavio Spezi
  • Created: 23/08/2013
  • Current version 2.1.1
  • License MIT
  • Downloads on Our: 1.9K