hishamco / MarkdownViewEngine

Markdown View Engine for ASP.NET Core
http://hishambinateya.com/introducing-a-new-markdown-view-engine-for-asp.net-core
MIT License
43 stars 3 forks source link

Support CommonMarkSettings via MarkdownViewEngineOptions #7

Open hishamco opened 7 years ago

hishamco commented 7 years ago

@jskeet this piece that required to expose CommonMarkSettings via MarkdownViewEngineOptions, but i'm not sure if there 's an elegant way to support this via @Page directive

Perhaps some of the settings such as RenderSoftLineBreaksAsLineBreaks will be easy to implement, because there 's no CSharp parser yet that may simplify the process, so I think this suitable for app settings for at the moment

hishamco commented 7 years ago

Addresses issue #3

jskeet commented 7 years ago

Great, thanks - will try it out tonight :)

hishamco commented 7 years ago

I'm still wonder if we can expose the entire CommonMarkSettings object or shall we create a new MarkdownSettings object with the commonly used properties, and use CommonMarkSettings behind the scene