I have a folder with some files written in markdown format that I would like to convert in html using
I want a local value for the variable
markdown-css-paths, in order to have a custom file as style sheet of the resulting html files. So, I create a
.dir-locals.el file in the same folder of the markdown files and inside it I put this:
((markdown-mode (markdown-css-paths ("test.css"))))
I reload all the buffers, then invoke
C-h v markdown-css-paths [RET] to make sure the variable is set correctly, which it is:
markdown-css-paths is a variable defined in ‘markdown-mode.el’. Its value is (("test.css")) Original value was nil Local in buffer nuovo-corso.md; global value is nil
The problem is: when I try to convert the files in html (with the command
C-c C-c m), no
test.css style sheet is included.
The same thing happend with at least another variable,
markdown-xhtml-header-content: it seems as if, during conversion, markdown-mode doesn't rely on the
.dir-locals.el variable values.
When, instead, I set those variables in
.emacs, everything works as expected.
What am I doing wrong? I'm using emacs 26.1 and markdown-mode 20180904.1601.