How to apply color in Markdown?

后端 未结 11 968
情话喂你
情话喂你 2020-11-28 01:08

I want to use Markdown to store textual information. But quick googling says Markdown does not support color. Also StackOverflow does not support color. Same as in case of G

相关标签:
11条回答
  • 2020-11-28 01:22

    Short story: links. Make use of something like:

    a[href='red'] {
        color: red;
        pointer-events: none;
        cursor: default;
        text-decoration: none;
    }
    <a href="red">Look, ma! Red!</a>

    (HTML above for demonstration purposes)

    And in your md source:

    [Look, ma! Red!](red)

    0 讨论(0)
  • 2020-11-28 01:23

    This should be shorter:

    <font color='red'>test blue color font</font>
    
    0 讨论(0)
  • 2020-11-28 01:24

    I have started using Markdown to post some of my documents to an internal web site for in-house users. It is an easy way to have a document shared but not able to be edited by the viewer.

    So, this marking of text in color is “Great”. I have use several like this and works wonderful.

    <span style="color:blue">some *This is Blue italic.* text</span>
    

    Turns into This is Blue italic.

    And

    <span style="color:red">some **This is Red Bold.** text</span>
    

    Turns into This is Red Bold.

    I love the flexibility and ease of use.

    0 讨论(0)
  • 2020-11-28 01:25

    I've had success with

    <span class="someclass"></span>
    

    Caveat : the class must already exist on the site.

    0 讨论(0)
  • 2020-11-28 01:26

    This works in the note-taking Joplin:

    <span style="color:red">text in red</span>
    
    0 讨论(0)
  • 2020-11-28 01:38

    In Jekyll I was able to add some color or other styles to a bold element (should work with all other elements as well).

    I started the "styling" with {: and end it }. There is no space allowed between element and curly bracket!

    **My Bold Text, in red color.**{: style="color: red; opacity: 0.80;" }
    

    Will be translated to html:

    <strong style="color: red; opacity: 0.80;">My Bold Text, in red color.</strong>
    
    0 讨论(0)
提交回复
热议问题