joeyespo / grip

Preview GitHub README.md files locally before committing them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Add option for adding side margins

lukew3 opened this issue · comments

It's uncomfortable to have the text reach all the way to the edge of the screen. I would suggest allowing the user to use a -m option with an optional value to set the side margins. Could default to 10px if the flag is used but be set to any other quantity of pixels.

commented

I have the opposite problem. When I use the web server and 'wget' a page, it has no margins, which is what I want. (The README must appear in a tablet.) But when I use --export, the page has margins. So we both need a toggle to explicitly declare when we need margins. (also a table of contents wouldn't suck)

commented

I'm good. --no-inline moves the CSS to files that my browser can't read; then I use string surgery to remove the lines that say <link rel="stylesheet" href="/__/grip/asset/dark_colorblind-3d9d29921e03.css" />. The result is clean HTML with no margins