mb21 / panwriter

Markdown editor with pandoc integration and paginated preview.
https://PanWriter.com
GNU General Public License v3.0
1.01k stars 46 forks source link

Customize editor theme/layout #91

Open shaneknysh opened 2 years ago

shaneknysh commented 2 years ago

I just found panwriter and I am in love ❤️

I would love it even more if I could control a bit more of the editor. When I go full screen I would like to have the text be right aligned and go full width. Although I know this is likely not going to be a universally wanted item.

current image

better image

best image

I can manually get what I want by modifying css

.CodeMirror-lines {
    margin: 0 auto;
    max-width: 40em;
    padding: 60px 50px 50px;
}

to

.CodeMirror-lines {
    /* margin: 0 auto; */    /* makes it better */
    /* max-width: 40em; best*/ /* makes it best */
    padding: 60px 50px 50px;
}

but having this available as a setting would be great!

mb21 commented 2 years ago

Adding some settings/preferences is on the TODO list... but I haven't really decided the details yet...

mb21 commented 2 years ago

We could easily allow switching between different CodeMirror themes... but not sure we want to allow injecting arbitrary CSS. Or let's just say, if I would allow this, I wouldn't give any guarantees to users that a PanWriter update won't break their setup.