Components defined in MDX content should be able to receive arbitrary
props.
The main MDXContent component, though, receives props.components.
Previously their was a mix up where the code did not differentiate
between the two.
The handling of whether a variable was defined or not (which is needed
for the rewrite that allows components being passed in and provided
through context) was also too naïve.
Components defined in MDX content should be able to receive arbitrary props. The main
MDXContent
component, though, receivesprops.components
. Previously their was a mix up where the code did not differentiate between the two. The handling of whether a variable was defined or not (which is needed for the rewrite that allows components being passed in and provided through context) was also too naïve.This commit fixes that.
Closes GH-53.