markdown-folder-to-html icon indicating copy to clipboard operation
markdown-folder-to-html copied to clipboard

Problem with CSS files

Open Sorokin-Anton opened this issue 1 year ago • 0 comments

If I add a CSS file (e.g. from https://github.com/sindresorhus/github-markdown-css) near template.html and add <link rel="stylesheet" href="github-markdown.css"> to the template.html, the link to the style sheet will be wrong for files in nested folders: e.g. folder/a.md will be transformed to folder/a.html which would have link to folder/style.css which does not exist.

We can expose an option to change href="github-markdown.css" to href="../github-markdown.css" for files in level-1 folders, href="../../github-markdown.css" for level 2, etc

Sorokin-Anton avatar Dec 14 '23 13:12 Sorokin-Anton