Skip to content

Markdown Text Editor #1107

@WilliamABradley

Description

@WilliamABradley

I have written a small Markdown Toolbar that has buttons that modify a RichEditBox's Content, modelled after the functionality of the GitHub Markdown Editor, however, it currently only has a subset of the features of Markdown as I am using it for a Trakt.TV comments section, which only uses a small subset of the Markup.
Implementing the rest of the set would be a simple task with the Helper Methods I have written.
Does that sound like an interesting Control to add to the UWPCommunityToolkit?

Editor

Previewer

It supports the ability to Revert formatting of selected text, if the selected text has already got that formatting applied, as a quick undo feature, much like GitHub (Also works for Lists & Quotes).

It produces a link creator Dialog when pressing the Link button, which probably could just insert the formatting if say CTRL key was held down.

Currently is has a dependency on FontAwesome as for some reason MDL2 Assets doesn't have an ordered list icon, however, the font pack is free for all Project Types.

The eye button, is a custom button for Trakt.TV as it does inline Spoilers with [spoiler][/spoiler] tags, which I convert into Reddit style spoilers of [Spoiler](/s *Spoiler Text*), which allows it to be read and handled by the MarkDownTextBlock without having to modify the UI or code structure of the Control. However, in order to capture this type of custom behaviour, I would likely need an event to intercept the Raw Text being sent to the previewer in order to allow for custom formatting, such as these spoilers, or the various flavours of Markdown.

Also in the top right is a button that goes straight to this Cheat sheet.

I'm sure it is possible to make an RTF to Markdown converter, and use that for conversion, but ain't nobody got time for that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions