Skip to content

Conversation

@mauvm
Copy link

@mauvm mauvm commented Jun 10, 2014

This PR makes referencing to local files (including images) work with the basedir option, just like the include/extend commands do.

This is based on two assumptions:

  1. Escaped attributes, in this case "src" and "href", always start and end with double quotes
    (I couldn't find a clean way to extract the URL, suggestions are welcome);
  2. The basedir option is also used in front end,
    which would make img(src="https://github.com/test/image.png") compile to <img src="https://github.com/base/dir/test/image.png"/>.

Please verify.

@mauvm mauvm closed this Jun 11, 2014
@mauvm
Copy link
Author

mauvm commented Jun 11, 2014

This needs some further examination.

@mauvm mauvm deleted the feature-resolve-tag-paths branch July 2, 2014 13:08
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

Successfully merging this pull request may close these issues.

1 participant