jcs-elpa / impatient-showdown

Preview markdown buffer live over HTTP.
GNU General Public License v3.0
12 stars 6 forks source link

Values for impatient-showdown-flavor #6

Open buhtz opened 1 year ago

buhtz commented 1 year ago

From the docu it is unclear which values are possible for impatient-showdown-flavor.

jcs090218 commented 1 year ago

Yeah... sorry about the documentation. The value can be found in the code:

https://github.com/jcs-elpa/impatient-showdown/blob/15927eb364d0a1cdaa0b05f82024444d21249fb0/impatient-showdown.el#L69-L74

These are flavors from showdown, see https://github.com/showdownjs/showdown#flavors.

buhtz commented 1 year ago

I assume I do something wrong with the syntax.

(use-package impatient-showdown
  :hook
  (markdown-mode . impatient-showdown-mode)
  :init
  (setq impatient-showdown-flavor "github")
  (setq impatient-showdown-background-color "#9d9d9d")
  (setq impatient-showdown-markdown-background-color "#f7f1ec")
  )

The result looks like an error

grafik

jcs090218 commented 1 year ago

It should be a symbol, not a string:

(setq impatient-showdown-flavor 'github)
buhtz commented 1 year ago

Ah. OK, now it "works" without errors. But the visual result looks identical between each of the three options (default, vanilla and github).