From 4198504fd11312503523984e6bc4bc6c5ad1a229 Mon Sep 17 00:00:00 2001 From: Mathieu PATUREL Date: Sun, 22 Jan 2017 19:41:00 +1100 Subject: [PATCH] [docs] add custom css part --- docs/index.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 3d515ef..8ec3a80 100644 --- a/docs/index.md +++ b/docs/index.md @@ -59,7 +59,26 @@ As told in the introduction, MarkdownLivePreview is very easy to use: !!! tip [Markdown Extended][] is supported too! -That's it. +That's it. That's all you need to do to preview your markdown! + +### Custom CSS + +If you want to, you can add custom `CSS` to the MarkdownLivePreview's default stylesheet. + +Just search for `MarkdownLivePreview: Edit Custom CSS File` in the command palette +(ctrl+shift+p). It will open a file in which you can add some CSS that will be *added* to +the normal CSS. + +!!! bug + Comments in the CSS is interpreted weirdly by Sublime Text's phantoms. After a few tests, I + think that everything that is bellow a comment is ignored. + + If you want to be sure that your CSS works, don't put any comments in it + +#### Share your tweaks! + +If you think that other users would enjoy your added CSS, then raise an issue, or PR the +[GitHub repo][] to share your tweaks! ### Clearing the cache @@ -115,7 +134,7 @@ Here's what I'd recommend (and use): } ``` -!!! note +!!! tip On Windows at least, you can press alt to focus (so show) the menu, even if they're originally hidden @@ -130,3 +149,4 @@ frameborder="0" scrolling="0" width="160px" height="30px">! [pck-con]: https://packagecontrol.io [install-pck-con]: https://packagecontrol.io/installation [tweet]: https://twitter.com/_math2001 +[GitHub repo]: https://github.com/math2001/MarkdownLivePreview/issues