The idea is to then use this component in an MDX file like so:
You can use <Component text="Ursol's Vortex"/> to prevent [...]Don't focus the <Component text="Workshop Defender"/>s [...]
You can use <Component text="Ursol's Vortex"/> to prevent [...]Don't focus the <Component text="Workshop Defender"/>s [...]
The issue here is that I can't seem to find a way to get a satisfactory spacing in both cases.
The current code seems to remove any space following the inline component, which works fine for when the
<Component>
<Component>
is followed by a punctuation mark or by a plural 's', but it makes the text unreadable when its followed by actual words.
I tried adding a margin-right, or a non-breaking space, but doing that breaks the other way around (the text becomes "Don't focus the Workshop Defender s")