toland / qlmarkdown

QuickLook generator for Markdown files.
3.24k stars 141 forks source link

Add option to switch back to vanilla styling #76

Open tarwich opened 7 years ago

tarwich commented 7 years ago

In #75 we gained the ability to have our markdown look like GitHub, which was a huge win. However, it opens the door for debate on whether a user should be able to choose their style of markdown. Perhaps we should have a way of choosing the "theme" that will be applied to the markdown previewer.

tattali commented 7 years ago

Is the project build successfully for you in Xcode? Because I have make it on my project https://github.com/tattali/QLAddict/blob/master/QuickLookAddict/GeneratePreviewForURL.m#L23-L29

You can select the theme with defaults write com.sub.QuickLookAddict style NAME_OF_THEME

tattali commented 7 years ago

https://github.com/tattali/qlmarkdown/commit/4514d6f6d498bcb32266ef1153d9dec38b5212aa NAME_OF_THEME = default|github defaults write com.fiatdev.QLMarkdown theme NAME_OF_THEME