Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

fix: using the appropriate markdown contexts when necessary #558

Merged
merged 1 commit into from
Mar 23, 2020

Conversation

erunion
Copy link
Member

@erunion erunion commented Mar 23, 2020

🧰 What's being changed?

This resolves a bug in our Markdown processing of links where we weren't prepending the supplied baseUrl because, when the old Markdown processor was enabled, we were loading a context consumer that was never actually set up.

What happens now is that if the new Markdown engine is enabled, we'll use the context for BaseUrl and GlossaryTerms from @readme/markdown, otherwise we'll use the same files but from @readme/markdown-engine.

🗳 Checklist

💡 If answering yes to any of the following, include additional info, before/after links, screenshots, etc. where appropriate!

  • 🆕 I'm adding something new!
  • 🐛 I'm fixing a bug!
  • 📸 I've made some changes to the UI!

@erunion erunion added the type:bug Something isn't working label Mar 23, 2020
Copy link
Contributor

@rafegoldberg rafegoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch here.

@erunion erunion merged commit e1ac5d8 into master Mar 23, 2020
@erunion erunion deleted the fix/baseurl-context branch March 23, 2020 20:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants