You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

markdownextensions.htm 8.2 kB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!-->
  4. <html class="no-js" lang="en">
  5. <!--<![endif]-->
  6. <head>
  7. <meta charset="utf-8">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10. <title>Markdown extensions - DocNet Documentation</title>
  11. <link rel="shortcut icon" href="favicon.ico">
  12. <link rel="stylesheet" href="css/theme.css" type="text/css" />
  13. <link rel="stylesheet" href="css/theme_colors.css" type="text/css" />
  14. <link rel="stylesheet" href="css/styles/vs.css">
  15. <link rel="stylesheet" href="css/font-awesome.4.5.0.min.css">
  16. </head>
  17. <body role="document">
  18. <div class="grid-for-nav">
  19. <nav data-toggle="nav-shift" class="nav-side stickynav">
  20. <div class="side-nav-search">
  21. <a href="index.htm"><i class="fa fa-home"></i> DocNet Documentation</a>
  22. <div role="search">
  23. <form id="search-form" class="form" action="Docnet_search.htm" method="get">
  24. <input type="text" name="q" placeholder="Search docs" />
  25. </form>
  26. </div>
  27. </div>
  28. <div class="menu menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  29. <ul>
  30. <li class="tocentry"><a href="index.htm">Home</a>
  31. </li>
  32. <li class="tocentry"><a href="usage.htm">Usage</a>
  33. </li>
  34. <li class="tocentry">
  35. <span class="navigationgroup"><i class="fa fa-caret-right"></i> <a href="Configuration.htm">Configuration</a></span>
  36. </li>
  37. <li class="tocentry">
  38. <ul>
  39. <li><span class="navigationgroup"><i class="fa fa-caret-down"></i> <a href="Authoringcontent.htm">Authoring content</a></span></li>
  40. <li class="tocentry"><a href="themes.htm">Themes</a>
  41. </li>
  42. <li class="tocentry">
  43. <ul>
  44. <li><span class="navigationgroup"><i class="fa fa-caret-down"></i> <a href="WritingcontentusingMarkdown.htm">Writing content using Markdown</a></span></li>
  45. <li class="tocentry"><a href="markdownsupport.htm">Markdown support</a>
  46. </li>
  47. <li class="tocentry current"><a class="current" href="markdownextensions.htm">Markdown extensions</a>
  48. <ul class="currentrelative">
  49. <li class="tocentry"><a href="#Alertboxes">Alert boxes</a></li>
  50. <li class="tocentry"><a href="#FontAwesomeicons">Font Awesome icons</a></li>
  51. <li class="tocentry"><a href="#Tabs">Tabs</a></li>
  52. </ul>
  53. </ul>
  54. </li>
  55. </ul>
  56. </li>
  57. <li class="tocentry"><a href="search.htm">Search</a>
  58. </li>
  59. <li class="tocentry"><a href="acknowledgements.htm">Acknowledgements</a>
  60. </li>
  61. <li class="tocentry"><a href="license.htm">License</a>
  62. </li>
  63. </ul>
  64. <div class="toc-footer">
  65. <span class="text-small">
  66. <hr/>
  67. <a href="https://github.com/FransBouma/DocNet" target="_blank">Made with <i class="fa fa-github"></i> DocNet</a>
  68. </span>
  69. </div>
  70. </div>
  71. &nbsp;
  72. </nav>
  73. <section data-toggle="nav-shift" class="nav-content-wrap">
  74. <nav class="nav-top" role="navigation" aria-label="top navigation">
  75. <i data-toggle="nav-top" class="fa fa-bars"></i>
  76. <a href="index.htm">DocNet Documentation</a>
  77. </nav>
  78. <div class="nav-content">
  79. <div role="navigation" aria-label="breadcrumbs navigation">
  80. <div class="breadcrumbs">
  81. <ul><li><a href="index.htm">Home</a></li> / <li><a href="Authoringcontent.htm">Authoring content</a></li> / <li><a href="WritingcontentusingMarkdown.htm">Writing content using Markdown</a></li> / <li><a href="markdownextensions.htm">Markdown extensions</a></li></ul>
  82. </div>
  83. <hr />
  84. </div>
  85. <div role="main">
  86. <div class="section">
  87. <p><h1>Markdown extensions</h1></p>
  88. <p><code>Docnet</code> defines the following markdown extensions to make writing </p>
  89. <p><a name="Alertboxes"></a><h2>Alert boxes</h2></p>
  90. <p>To quickly define alert boxes, <code>Docnet</code> defines the <code>&#64;alert</code> element. Three types of alerts are defined: <em>danger</em> (displayed in red), <em>warning</em> (displayed in yellow) and <em>info</em> or <em>neutral</em>, which is displayed in blue. You specify the type of the alert after the <code>&#64;alert</code> statement using &#64;alert <em>name</em>. Close the <code>&#64;alert</code> with <code>&#64;end</code>. </p>
  91. <p>Below are examples for each alert box and the markdown used to create them. </p>
  92. <p>The markdown: </p>
  93. <p><pre class="nocode">&#64;alert danger
  94. This is a dangerous text, it will be displayed in a danger alert box!
  95. &#64;end
  96. </pre></p>
  97. <p>results in</p>
  98. <p>
  99. <div class="alert alert-danger"><span class="alert-title"><i class="fa fa-times-circle"></i> Danger!</span>This is a dangerous text, it will be displayed in a danger alert box!</div></p>
  100. <p>The markdown: </p>
  101. <p><pre class="nocode">&#64;alert warning
  102. This is a warning text, it will be displayed in a warning alert box!
  103. &#64;end
  104. </pre></p>
  105. <p>results in</p>
  106. <p>
  107. <div class="alert alert-warning"><span class="alert-title"><i class="fa fa-warning"></i> Warning!</span>This is a warning text, it will be displayed in a warning alert box!</div></p>
  108. <p>The markdown: </p>
  109. <p><pre class="nocode">&#64;alert info
  110. This is an info text, it will be displayed in an info alert box!
  111. &#64;end
  112. </pre></p>
  113. <p>Results in</p>
  114. <p>
  115. <div class="alert alert-info"><span class="alert-title"><i class="fa fa-info-circle"></i> Info</span>This is an info text, it will be displayed in an info alert box!</div></p>
  116. <p><a name="FontAwesomeicons"></a><h2>Font Awesome icons</h2></p>
  117. <p>To specify a font-awesome icon, use <code>&#64;fa-iconname</code>, where <em>iconname</em> is the name of the font-awesome icon.</p>
  118. <p>Example: To specify the font awesome icon for GitHub, use <code>&#64;fa-github</code>, which will result in: <i class="fa fa-github"></i> </p>
  119. <p><a name="Tabs"></a><h2>Tabs</h2></p>
  120. <p>It's very easy with <code>Docnet</code> to add a tab control with one or more tabs to the HTML with a simple set of markdown statements. The tab statements are converted into pure CSS3/HTML tabs, based on the work of <a href="http://codepen.io/fusco/pen/Wvzjrm">Joseph Fusco</a>.</p>
  121. <p>To start a Tab control, start with <code>&#64;tabs</code> and end the tabs definition with <code>&#64;endtabs</code>. Between those two statements, which each need to be suffixed with a newline, you define one or more tabs using <code>&#64;tab</code> followed by the label text for that tab, followed by a newline. End your tab contents with <code>&#64;end</code>.</p>
  122. <p>The following example shows two tabs, one with label 'First Tab' and one with 'Second Tab':</p>
  123. <p><pre class="nocode">&#64;tabs
  124. &#64;tab First Tab
  125. This is the text for the first tab. It's nothing special</p>
  126. <p>As you can see, it can deal with newlines as well.
  127. &#64;end
  128. &#64;tab Second Tab
  129. Now, the second tab however is very interesting. At least let's pretend it is!
  130. &#64;end
  131. &#64;endtabs
  132. </pre></p>
  133. <p>will result in: </p>
  134. <p><div class="tab-wrap"><input type="radio" id="tab0_1" name="tabGroup1" class="tab" checked><label for="tab0_1">First Tab</label><input type="radio" id="tab1_1" name="tabGroup1" class="tab"><label for="tab1_1">Second Tab</label><div class="tab-content">This is the text for the first tab. It's nothing special</p>
  135. <p>As you can see, it can deal with newlines as well. </div><div class="tab-content">Now, the second tab however is very interesting. At least let's pretend it is!</div></div></p>
  136. </div>
  137. </div>
  138. <footer>
  139. <hr />
  140. <div role="contentinfo">
  141. Made with DocNet. Get your copy at: <a href='https://github.com/FransBouma/DocNet' target='_blank'>https://github.com/FransBouma/DocNet</a>.
  142. </div>
  143. </footer>
  144. </div>
  145. </section>
  146. </div>
  147. <script src="js/jquery-2.1.1.min.js"></script>
  148. <script src="js/modernizr-2.8.3.min.js"></script>
  149. <script src="js/highlight.pack.js"></script>
  150. <script src="js/theme.js"></script>
  151. {{ExtraScript}}
  152. </body>
  153. </html>

No Description

Contributors (1)