Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: xammac-1.4

This branch is 163 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
Resources
Screenshots
sundown
AppDelegate.cs
Info.plist
Main.cs
MainMenu.xib
MainMenu.xib.designer.cs
Markdown.csproj
Markdown.sln
Metadata.xml
MyDocument.cs
MyDocument.designer.cs
MyDocument.xib
README.md
Sundown.cs

README.md

Github Flavored Markdown Viewer

This Mac sample is quite useful for authoring and viewing Markdown files, but also offers a little insight into building a hybrid web and native Mac application.

  • MonoMac.AppKit.NSDocument is used for automatic document handling.
  • The MonoMac.WebKit.WebView control is used for rendering.
  • File system monitoring through MonoMac.CoreServices.FSEventStream is used to monitor the loaded document for changes.
  • Changes made are reflected by replacing content directly in the DOM.
  • JavaScript is used to scroll the page, invoked from native code.
  • Navigation events are intercepted to open links in the system browser.

Under the hood

The Sundown C library is used to actually convert Markdown to HTML. In addition all the Github extensions are enabled. A small C# binding to Sundown is included.

Resources

A Screenshot

Markdown Viewer Screenshot

Something went wrong with that request. Please try again.