Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative CSS File paths #5

Closed
prantikv opened this issue Dec 3, 2016 · 3 comments
Closed

Relative CSS File paths #5

prantikv opened this issue Dec 3, 2016 · 3 comments

Comments

@prantikv
Copy link

prantikv commented Dec 3, 2016

I have the markdown file and the css file in the same folder at the same level.

I added the file path to my css as following

{
     "markdown-pdf.breaks": true,
      "markdown-pdf.styles": [
        "E:/MarkDown/vscode/my.css"          // OK
    ]
}

This works but as the path is absolute moving the folder will break css

I also tried to add the following paths

{
     "markdown-pdf.breaks": true,
      "markdown-pdf.styles": [
       ".//my.css"  //DID NOT WORK
       ".\my.css"  //DID NOT WORK
       "my.css"  //DID NOT WORK
    ]
}

I believe this should have worked but did not. Let me know if I am missing anything here.

@yzane yzane closed this as completed in 654c459 Jan 8, 2017
yzane added a commit that referenced this issue Jan 8, 2017
This fixes #5 Relative CSS File paths
@yzane yzane reopened this Jan 8, 2017
@yzane yzane closed this as completed Jan 8, 2017
@yzane yzane reopened this Jan 8, 2017
@yzane
Copy link
Owner

yzane commented Jan 8, 2017

@migrap Thank you so much.

@migrap
Copy link
Contributor

migrap commented Jan 8, 2017

@yzane you're welcome. Cheers.

@yzane
Copy link
Owner

yzane commented Jan 9, 2017

Released 0.1.5 with this fix.
Please update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants