Skip to content

Example project to open with Web Essentials 2013 to compile Markdown to a full HTML page.

License

Notifications You must be signed in to change notification settings

josephlim75/webessentials-markdown-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

webessentials-markdown-template

Example project to open with Web Essentials 2013 to compile Markdown to a full HTML page.

How it works

The script Generate-Documentation.ps1 takes your Markdown file and generates it with CommonMark.NET.

Then, it finds your WE-Markdown.html template and replaces the content with what you generated as well as a few other important variables.

In this example project, the POST-BUILD event of the project containing the markdown calls the PowerShell script.

Feel free to contribute!

WebEssentials settings

In WebEssentials-Settings.json, note that I disabled the "CompileOnSave" for Markdown. Otherwise, everytime the file is saved, the default compilation takes over and you lose the template in the actual file.

Links

This sample created for Stack Overflow question Can Web Essentials 2013 compile markdown to HTML with a template?

About

Example project to open with Web Essentials 2013 to compile Markdown to a full HTML page.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 41.5%
  • C# 32.9%
  • PowerShell 25.6%