From 73af604f1d40966e7fa931e3ca78877a8e035e1b Mon Sep 17 00:00:00 2001 From: Igor Shymko Date: Sun, 11 Dec 2016 14:04:36 +0200 Subject: [PATCH] Update doc on extra css --- README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 24e84ee..3ffd4b5 100644 --- a/README.md +++ b/README.md @@ -28,14 +28,22 @@ In order to select preferred browser, customize `M-x customize-option` -> `browse-url-browser-function` option. Select your browser from `Value menu`. If it's not there, follow [EmacsWiki: Browse Url](http://www.emacswiki.org/emacs/BrowseUrl). -## Theme +## Stylesheets -[Solarized-dark](http://thomasf.github.io/solarized-css/) +Default theme for preview is [Solarized-dark](http://thomasf.github.io/solarized-css/) -In order to change preview styling, run `M-x customize-option` -> `markdown-preview-style` -and specify a URL to your favourite markdown css file. +Extra css are added with: -## Client javascript +```lisp +(add-to-list 'markdown-preview-stylesheets "https://raw.githubusercontent.com/richleland/pygments-css/master/emacs.css") +``` +Override theme completely with: + +```lisp +(setq markdown-preview-stylesheets (list "http://thomasf.github.io/solarized-css/solarized-light.min.css")) +``` + +## Extra javascript If you'd like to include additional javascript for the preview, add this to your init: