I am using BlueCloth as a Markdown library for Ruby, and I can't find any syntax for getting a text underlined. What is it?
相关问题
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
- reference to a method?
- ruby 1.9 wrong file encoding on windows
- Markdown to clipboard as rich text
相关文章
- >>" markdown 引用语法" href="https://www.manongdao.com/article-2318498.html" > 有没有办法让 markdown-it 支持 ">>>" markdown 引用语法
- Ruby using wrong version of openssl
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- “No explicit conversion of Symbol into String” for
- Is there a Github markdown language identifier for
- Segmentation fault with ruby 2.0.0p247 leading to
- How to detect if an element exists in Watir
For everyone out here using Markdown in Jupyter Notebooks, you can underline text using syntax similar to HTML5 (
<u>
and</u>
).<u> Bolded Words Here </u>
In GitHub markdown
<ins>
text</ins>
works just fine.Another reason is that
<u>
tags are deprecated in XHTML and HTML5, so it would need to produce something like<span style="text-decoration:underline">this</span>
. (IMHO, if<u>
is deprecated, so should be<b>
and<i>
.) Note that Markdown produces<strong>
and<em>
instead of<b>
and<i>
, respectively, which explains the purpose of the text therein instead of its formatting. Formatting should be handled by stylesheets.Update: The
<u>
element is no longer deprecated in HTML5.Markdown doesn't have a defined syntax to underline text.
I guess this is because underlined text is hard to read, and that it's usually used for hyperlinks.
The simple
<u>some text</u>
should work for you.You can wrote
**_bold and italic_**
and re-style it to underlined text, like this: