MacDownApp / macdown

Open source Markdown editor for macOS.
https://macdown.uranusjr.com/
9.4k stars 1.09k forks source link

Make HTML template configurable #577

Open uranusjr opened 8 years ago

uranusjr commented 8 years ago

There has been requests being able to configure the layout. This might be a good idea. The current implementation already uses a template (Handlebars) to render the HTML document, so we just need to move the template into a file (Default.handlebars, probably), probably add a dropdown to let the user configure custom ones, like themes and styles.

Will need to think what is the best way to pass in the current style and scripts.

waahto commented 8 years ago

Is it also possible to make the editor view configurable? IMO, this would be a major benefit for MacDown. I currently use Typora which basically has a combined editor/preview. It runs on HTML and I've implemented some custom js to the template file to easily extend it with a few features I thought were missing. It would be nice to be able to do it with MacDown also!

FranklinYu commented 7 years ago

@waahto Editor pane of MacDown doesn't seem to be backed by HTML (unlike Atom), so your JavaScript trick probably won't work here, sorry.