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

baseUrl cannot be used inside another variable #261

Closed
yamgent opened this issue Jun 11, 2018 · 1 comment · Fixed by #264
Closed

baseUrl cannot be used inside another variable #261

yamgent opened this issue Jun 11, 2018 · 1 comment · Fixed by #264

Comments

@yamgent
Copy link
Member

yamgent commented Jun 11, 2018

Tell us about your environment

  • MarkBind Version:
    1.8.1

What did you do? Please include the actual source code causing the issue.

variables.md

<span id="websiteInfo">The baseUrl that we are using is {{baseUrl}}.</span>

index.md

{{baseUrl}}

{{websiteInfo}}

What did you expect to happen?

index.html should be rendered as:

/helloWorld

The baseUrl that we are using is /helloWorld.

What actually happened? Please include the actual, raw output.

index.html is actually rendered as (notice the missing text for the second line):

/helloWorld

The baseUrl that we are using is .
yamgent added a commit to yamgent/markbind-problems that referenced this issue Jun 12, 2018
This commit replicates the bug in MarkBind/markbind#261.
@rachx
Copy link
Contributor

rachx commented Jun 12, 2018

I think https://github.com/MarkBind/markbind/blob/master/lib/Site.js#L327 just need to move earlier in the code before the mapping is used.

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

Successfully merging a pull request may close this issue.

2 participants