linked image in reStructuredText - restructuredtext

How can I create a linked image with reStructuredText?
I've found
.. image:: /path/to/image.jpg
for images, and external hyperlinks like
'Python <http://www.python.org/>'_
for links, but I don't know how to combine them or if that is at all possible.

Two ways to do it:
in inline images:
.. image:: pageflip-200.png
:target: pageapplet/index.html
With a reference, like:
Click on my |ImageLink|_
.. |ImageLink| image:: /images/link.png
.. _ImageLink: http://link.url/

The following site has a reference for reStructuredText but also Markdown, MediaWiki, asciidoc & org-mode.
http://hyperpolyglot.org/lightweight-markup

Related

How to color a header in markdown in Jupyter?

I know there is a way to color fonts by using HTML tag in this way: <span style='color:green'>TEST</span>
But when I do something like <span style='color:green'>## TEST</span>, the headers feature will not appear, i.e. the font size is not enlarged.
Is there a neat way to color headers in markdown in Jupyter Notebook without using lengthy css stuff? Thanks.
I have tried searched a lot on Google and Stackoverflow but I still cannot find a solution to my problem. I am expecting a solution. Thanks.
On github and gitlab you can use KATEX who can help with good codes like \color{colorname} who change the color from the text inside the $$$$ code, like below:
# $${\color{purple} \boxed{ \frak{ \color{orange}Rise \space \color{cyan}and \space \color{magenta}Rise \space \color{lime}again \space \color{violet}until \space \color{lightgray}Lambs \space \color{teal}become \space \color{red}Lions !} } }$$
On github profile:
Like jupiter use almost the same markdown, you can check if you can use LATEX or KATEX code.
More info about LATEX on jupyter here: towards data science - markdown latex on jupyter

img styling is changing the way emojis are displayed

I have a GatsbyJS website that uses NetlifyCMS. I restyled the images on my website to be centered. The issue i've found now is that all the emojis in the blog posts are now also in a new line and centered in the posts and it doesn't look good at all.
Is there anyway to style the img and emojis seperately? I am aware that emojis show up on the markdown file as images.
I have attached images of how the emojis look in the blog posts, the markdown file and the styling file.
Any solutions would be appreciated <3
That's because you are using images.
In markdown the syntax
![x](y)
will be rendered to html as
<img src='y' alt='x'>
So, the solution is either using plain emoji as #ando-andriamalala suggested.
Or, if you really need to use image (I'm guessing for display consistency?), you can, assuming you only use this domain for your emoji needs:
.Content img[src*="https://static.xx.fbcdn.net"] {
...
}
see MDN CSS: Attribute selectors for details
Try to use copy and past emoji instead of image 😆
here a link https://getemoji.com/

Changing bullet styles using DocX

Does anybody know how to change bullet style using DocX ? I can add bullet lists, but can't figure out how to change the style to square bullets. I searched both the documentation and the source code on Github, to no avails.
Thanks in advance

Italicize text containing a link

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?
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*
Another option in this case is to use unicode italic text:
𝘞𝘢𝘳𝘯𝘪𝘯𝘨: `𝘞𝘢𝘵𝘤𝘩 𝘵𝘩𝘪𝘴 <http://www.youtube.com/watch?v=dQw4w9WgXcQ&ob=av3e>`_!
Although this does mean that you are stuck with the specific formatting of those unicode characters (you can get a serif version too).

Twitter Bootstrap code copied and not loading

I have copied the following template over to my CI install to use the css. I am unsure why that css is not loading but it is a direct copy from the example. Any ideas?
Your css have 567 lines and the original one have .. 3365!
You : http://jsfiddle.net/ayottepl/EnSwQ/
The original : http://jsfiddle.net/ayottepl/7dCTw/
Just change the css in you're and it works!

Resources