Can someone help explain what is going on, and how to fix it so I don't have too put a <span> in every link.
I am actually writing some .md files and using Juypter to display it in its final form. The markdown (.md) file has many links. The following code shows the problem inside the Jupyter cell. I researched this problem and many say to use <style> and one said to use <span> per link. The <style> doesn't work.
NOTE: When I use markdown directly within a Jupyter cell the links show as blue. It is only when I use the IPython.display(Markdown()) that it fails
The <span> works but means messing up the md file.
Why doesn't link2 simply show up with green? And how can I override all links within markdown.
from IPython.display import Markdown
Markdown('''<span style="color:blue">[This is a blue link](https://example.com)</span>
<br>XXXX
<style>
a { color:blue}
</style>
[This is a green link2](https://example.com)
''')
The output is

Here is the generated HTML(without CSS)
<div>
<div>
<p>
<span class="jp-RenderedHTMLCommon not-prose">
<span style="color:blue">
<a href="https://example.com" rel="nofollow">This is a blue link</a>
</span>
</span>
<span class="jp-RenderedHTMLCommon not-prose"><br></span>
<span class="jp-RenderedHTMLCommon not-prose"></span>
<p>
<a target="_blank" href="https://example.com" rel="noreferrer">This is a green link2</a>
</p>
</p>
</div>
</div>
<style>/<span>-approaches in Jupyter for this? I'd like to update them to include current information. I tried looking around and wasn't finding examples easily. Or maybe it was just HTML advice in general you were referencing?