All Projects → whistyun → MdXaml

whistyun / MdXaml

Licence: MIT license
Markdown for WPF - alternate version of Markdown.Xaml

Programming Languages

C#
18002 projects
HTML
75241 projects

Projects that are alternatives of or similar to MdXaml

EyesGuard
👀 Windows Application for protecting your eyes
Stars: ✭ 217 (+92.04%)
Mutual labels:  wpf
Hacktober-2019
Repo for TOM members dedicated for the Hacktober fest of 2019 (6th edition), this repo is here to encourage open source learning and sharing and enhance git/github using abilities.
Stars: ✭ 16 (-85.84%)
Mutual labels:  wpf
Colora
Color converter, screen color picker and color palettes for Windows
Stars: ✭ 32 (-71.68%)
Mutual labels:  wpf
AdmiralRoom
An open source browser-like tool for KanColle.
Stars: ✭ 57 (-49.56%)
Mutual labels:  wpf
WPFPS
PowerShell module to interact with Windows Presentation Foundation (or WPF) controls.
Stars: ✭ 17 (-84.96%)
Mutual labels:  wpf
FileRenamerDiff
A File Renamer App featuring a difference display before and after the change.
Stars: ✭ 32 (-71.68%)
Mutual labels:  wpf
FritzBoxTelefon-dingsbums
Das Fritz!Box Telefon-dingsbums ist ein Outlook-Addin, welches ein direktes Wählen der Kontakte aus Outlook ermöglicht. Zusätzlich bietet es nützliche Funktionen, wie einen Anrufmonitor oder eine Rückwärtssuche.
Stars: ✭ 16 (-85.84%)
Mutual labels:  wpf
Syosetu-Downloader
Download chapters from Syosetsu ni Narou
Stars: ✭ 23 (-79.65%)
Mutual labels:  wpf
MoalemYar
A personal project for class management, using various technologies like WPF, Entityframwork, CodeFirst, Sqlite, Migration and more
Stars: ✭ 53 (-53.1%)
Mutual labels:  wpf
atomex.client.wpf
Atomic swap exchange client for OS Windows
Stars: ✭ 15 (-86.73%)
Mutual labels:  wpf
Toast
🍞 The rounded and animated Android Toast for .NET WPF/XAML
Stars: ✭ 25 (-77.88%)
Mutual labels:  wpf
twinder
Unofficial Tinder client for Windows desktop
Stars: ✭ 18 (-84.07%)
Mutual labels:  wpf
machine-learning-blackjack-solution
Finding an optimal Blackjack strategy using AI
Stars: ✭ 40 (-64.6%)
Mutual labels:  wpf
YC.Marketing
提供预约、会员、订单、数据统计功能采用WPF MVVM
Stars: ✭ 30 (-73.45%)
Mutual labels:  wpf
SpicyTaco.AutoGrid
A magical replacement for the built in WPF Grid and StackPanel
Stars: ✭ 67 (-40.71%)
Mutual labels:  wpf
ChronClient
ChronClient is a Minecraft Bedrock Windows 10 Edition Client written in C#. It is being contributed by CXCubeHD.
Stars: ✭ 31 (-72.57%)
Mutual labels:  wpf
AsteroidsWasm
Collection of applications based on a single C# .NET Standard project running in: Blazor Client (WebAssembly), Blazor Server, Electron, WPF, WinForms, Xamarin
Stars: ✭ 136 (+20.35%)
Mutual labels:  wpf
DotNetKit.Wpf.AutoCompleteComboBox
ComboBox with filtering (auto-complete) for WPF
Stars: ✭ 66 (-41.59%)
Mutual labels:  wpf
IconPacks.Browser
The Browser for all available Icon packages from MahApps.Metro.IconPacks
Stars: ✭ 74 (-34.51%)
Mutual labels:  wpf
OpenTyping
열린타자 : 현대적인 오픈 소스 타자 연습 프로그램
Stars: ✭ 46 (-59.29%)
Mutual labels:  wpf

MdXaml

MdXaml is a modify version of Markdown.Xaml. It can convert Markdown to FlowDocument of WPF.

What is Markdown XAML?

see the origin project page

Markdown XAML is a port of the popular MarkdownSharp Markdown processor, but with one very significant difference: Instead of rendering to a string containing HTML, it renders to a FlowDocument suitable for embedding into a WPF window or usercontrol.

With HTML output, details of fonts and colours (and so on) are handled by CSS, but with a FlowDocument there's no direct equivalent. Instead of the HTML approch of linking a stylesheet to the rendered output, MarkDown.Xaml uses WPF styles that are linked to the rendering engine and applied to the output as it is generated. See the included demo application for an example of how this can be configured.

Samle

sc1 sc2 sc3 sc4 sc5

Nuget

https://www.nuget.org/packages/MdXaml/

Quick start

Convert markdown-string in a code.

// using MdXaml;
// using System.Windows.Documents;

Markdown engine = new Markdown();

string markdownTxt = System.IO.File.ReadAllText("example.md");

FlowDocument document = engine.Transform(markdownTxt);

Write markdown in a xaml.

<Window x:Class="HeredocSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mdxam="clr-namespace:MdXaml;assembly=MdXaml"
        Title="MainWindow" Height="450" Width="800">

	<mdxam:MarkdownScrollViewer xml:space="preserve">
		# sample title
		* document1
			* two
			* three
		* document2
	</mdxam:MarkdownScrollViewer>
</Window>

We can use MarkdownScrollViewer with code-behind and with binding.

How to use (Markdown standard)

How to use (Markdown enhance)

  • list; alphabet-order, roman-order
  • table; row-span, columnspan
  • text alignment
  • text decoration(bold, italic, strikethrough, underline, color)

Development

IDE: Visual Studio 2019
Framework: .NET Framework 4.6.2, .NET Core 3, .NET 5

Build

  1. Clone the repository

    git clone https://github.com/whistyun/MdXaml.git
  2. If you use VisualStudio, open MdXaml.sln.

    If you use dotnet CLI.

    dotnet build

License

MdXaml is licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].