Rename default rendered headings like “Example” in Swift Markup language

旧街凉风 提交于 2019-12-21 10:47:59

问题


Raw Markup

Rendered Markup

How do I change the word Example in the "Rendered Markup" to anything I would like?


回答1:


Custom callouts

You can make use of a Custom Callout

/*:
 # Hello, playground!

 The print() function in Swift

 * callout(Custom Title):
    print("Hello, playground!")

*/

Rendered as (using Dusk theme)


Additional pre-defined callouts

If you don't fancy the color of the Custom Callout, there are a few other callouts (in addition to Example) available for use in a playground

/*:
 # Hello, playground!

 The print() function in Swift

 * Example:
    print("Hello, playground!")

 * Experiment:
    print("Hello, playground!")

 * Important:
    print("Hello, playground!")

 * Note:
    print("Hello, playground!")

*/

For additional details, see the Markup Formatting Reference - Markup Functionality.



来源:https://stackoverflow.com/questions/38923167/rename-default-rendered-headings-like-example-in-swift-markup-language

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!