How to use color in text with ReStructured Text (rst2html.py) or how to insert HTML tags without blank lines?

后端 未结 7 1574
抹茶落季
抹茶落季 2020-12-13 13:37

How can I use color with ReStructured Text? For example, **hello** translates into hello. How can I make ReStructure(r

7条回答
  •  伪装坚强ぢ
    2020-12-13 14:41

    Well, I am a new user now, therefore I can not comment on others answer, thanks to stackoverflow's policy here. https://meta.stackexchange.com/questions/51926/new-users-cant-ask-for-clarifications-except-as-answers

    Sienkiew's answer is good, but I want to make correction about its last sentence.

    There IS way to specify the style sheet in the RST file. The clue is in Prosseek's original post, that is the .. raw:: directive.

    We can put following lines at the beginning of our RST file to specify its style.

    .. raw:: html
    
        
    

提交回复
热议问题