-
Notifications
You must be signed in to change notification settings - Fork 174
Closed
Description
Expected Behavior
I would like to set markdown-css-paths as a file-local-variable for
use with markdown-export.
Actual Behavior
- The
markdown-css-pathsvariables is marked unsafe which makes
using it as a file local variable pretty unergonomic. - The exported HTML doesn't import the stylesheet if set as a file
local variable.
Steps to Reproduce
-
Create a file
test.mdwith the following contents:<!-- -*- markdown-css-paths: ("./stylesheet.css"); -*- --> # Test # Test.
-
Create a
stylesheet.cssin the same directory:h1 { padding: 10px; }
-
Run
normal-modeto make sure that the local variable is loaded
and answeryes. -
Run
markdown-export -
Observe the output:
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>test.html</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> </head> <body> <!-- Local Variables: --> <!-- markdown-css-paths: ("./stylesheet.css") --> <!-- End: --> <h1 id="test">Test</h1> <p>Testa</p> </body> </html>
Specifically: no reference to
stylesheet.css.
Relevant values from custom.el
(custom-set-variables
...
'(markdown-fontify-code-blocks-natively t)
'(markdown-header-scaling nil)
'(markdown-header-scaling-values '(1.9 1.6 1.3 1.1 1.0 1.0))
'(markdown-open-command "/usr/bin/firefox")
'(markdown-reference-location 'end)
'(markdown-unordered-list-item-prefix "- ")
'(markdown-use-pandoc-style-yaml-metadata t)
...
)Software Versions
- Markdown Mode: markdown-mode, version 2.6
- Emacs: 29.3
- OS: Fedora Workstation 40
Metadata
Metadata
Assignees
Labels
No labels