I have an RST where I want an italicized link. However, the markup
*Warning: `Watch this <http://www.youtube.com/watch?v=dQw4w9WgXcQ&ob=av3e>`_!*
renders in HTML as
<em>Warning: `Watch this <http://www.youtube.com/watch?v=dQw4w9WgXcQ&ob=av3e>`_!</em>
That is, the italics render but the link doesn't. How do I get italics around the link?
Note, however, that a website's address should not be confused with its title. In MLA style, you should use the title of a website as it appears on the site and italicize it as you would any independent work.
To italicize the text in HTML, use either the em tag or the i (italics) tag. Both of these tags will italicize the text, but the em tag additionally indicates that the text has stress emphasis when read. You can also italicize text with the CSS font-style property set to “italic.”
To make text italic, select and highlight the text first. Then hold down Ctrl (the control key) on the keyboard and then press the I on the keyboard.
The problem is that reST markup cannot be nested.
I managed to get it work with this:
Warning: |text|_
.. _text: http://www.youtube.com/watch?v=dQw4w9WgXcQ&ob=av3e
.. |text| replace:: *Watch this*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With