-
|
Hello, I know the custom stylesheet itself works, because if I set up a relative path to the same directory, the stylesheet is applied. Here is my entire settings.json: {
"security.workspace.trust.untrustedFiles": "open",
"git.openRepositoryInParentFolders": "never",
"extensions.ignoreRecommendations": true,
"editor.fontSize": 14,
"git.enableSmartCommit": true,
"git.confirmSync": false,
"editor.tabSize": 2,
"editor.mouseWheelZoom": true,
"print.alternateBrowser.enable": true,
"print.alternateBrowser.path": "/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge",
"print.filepathHeadingForIndividuallyPrintedDocuments": false,
"print.folder.includeFileList": true,
"print.general.filepathHeadingForIndividuallyPrintedDocuments": false,
"print.markdown.stylesheets": [
"./solvworx-markdown.css",
"~/solvworx-markdown.css",
"file:///Users/joe/solvworx-markdown.css"
],
"markdown.styles": [
"~/solvworx-markdown.css",
"file:///Users/joe/solvworx-markdown.css"
]
}What am I doing wrong, and should I be using Thanks! P.S.: Oddly enough, it works as expected with an external URL: Curious as to why it won't recognize local absolute paths. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
|
@solvworx - have I answered this to your satisfaction? |
Beta Was this translation helpful? Give feedback.


Ways to manage your stylesheets
There are separate settings for source code, plain text and markdown stylesheets. The same path resolution mechanism is used for all stylesheets and all other resources (eg images).
Relative to your documents
A relative path is resolved relative to the directory that contains the document. If your repo contains
docs/some.mdthen for that document, a stylesheet path of./md.csswill resolve todocs/md.cssThis allows you to have a private
md.cssfor each folder of documents.Relative to your workspace
Workspace relative paths are (surprise!) relative to the workspace. For the snap below I put the stylesheet in the root of the workspace but you don't have to.…