revolunet / sublimetext-markdown-preview

markdown preview and build plugin for sublime text 2/3
MIT License
2.31k stars 362 forks source link

Is there a way to modify page_width? #325

Closed AdySan closed 8 years ago

AdySan commented 8 years ago

The rendered HTML file is rather narrow, I'd like to make it wider. Is there any way I can override the default page width in the markdown file?

facelessuser commented 8 years ago

Yes you can override the current CSS in the settings file with what you want. You can also append a CSS in addition to the default that overrides just the width.

facelessuser commented 8 years ago

I am assuming that your question was answered as there has been no response since. If you still have questions, feel free to ask them here, but I am going to close the issue.

AdySan commented 8 years ago

Here's how I got this to work

Modified this line in MarkdownPreview.sublime-settings

"css": ["default", "C:\\Users\\41atannu\\Downloads\\ady.css"],

and ady.css looks like this

body{
  width: 85%;
}
facelessuser commented 8 years ago

Looks good! Thanks for sharing. This will help others with the same question.