Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. # remark
  2. [![Build][build-badge]][build]
  3. [![Coverage][coverage-badge]][coverage]
  4. [![Downloads][downloads-badge]][downloads]
  5. [![Size][size-badge]][size]
  6. [![Sponsors][sponsors-badge]][collective]
  7. [![Backers][backers-badge]][collective]
  8. [![Chat][chat-badge]][chat]
  9. [**unified**][unified] processor to parse and serialize Markdown.
  10. Built on [micromark][].
  11. Powered by [plugins][].
  12. Part of the [unified][] collective.
  13. * API by [**unified**][unified]
  14. * Parses Markdown to a syntax tree with [`remark-parse`][parse]
  15. * [**mdast**][mdast] syntax tree
  16. * [Plugins][] transform the tree
  17. * Serializes syntax trees to Markdown with [`remark-stringify`][stringify]
  18. Don’t need the parser?
  19. Or compiler?
  20. [That’s OK: use **unified** directly][unified-usage].
  21. ## Install
  22. [npm][]:
  23. ```sh
  24. npm install remark
  25. ```
  26. ## Use
  27. [See **unified** for more examples »][unified]
  28. ###### Common example
  29. This example lints Markdown and turns it into HTML.
  30. ```js
  31. var remark = require('remark')
  32. var recommended = require('remark-preset-lint-recommended')
  33. var html = require('remark-html')
  34. var report = require('vfile-reporter')
  35. remark()
  36. .use(recommended)
  37. .use(html)
  38. .process('## Hello world!', function (err, file) {
  39. console.error(report(err || file))
  40. console.log(String(file))
  41. })
  42. ```
  43. Yields:
  44. ```txt
  45. 1:1 warning Missing newline character at end of file final-newline remark-lint
  46. ⚠ 1 warning
  47. ```
  48. ```html
  49. <h2>Hello world!</h2>
  50. ```
  51. ###### Settings through data
  52. This example prettifies Markdown and configures [`remark-stringify`][stringify]
  53. through [data][].
  54. ```js
  55. var remark = require('remark')
  56. remark()
  57. .data('settings', {emphasis: '*', strong: '*'})
  58. .process('_Emphasis_ and __importance__', function (err, file) {
  59. if (err) throw err
  60. console.log(String(file))
  61. })
  62. ```
  63. Yields:
  64. ```markdown
  65. *Emphasis* and **importance**
  66. ```
  67. ###### Settings through a preset
  68. This example prettifies Markdown and configures [`remark-parse`][parse] and
  69. [`remark-stringify`][stringify] through a [preset][].
  70. ```js
  71. var remark = require('remark')
  72. remark()
  73. .use({settings: {emphasis: '*', strong: '*'}})
  74. .process('_Emphasis_ and __importance__', function (err, file) {
  75. if (err) throw err
  76. console.log(String(file))
  77. })
  78. ```
  79. Yields:
  80. ```markdown
  81. *Emphasis* and **importance**
  82. ```
  83. ## API
  84. [See **unified** for API docs »][unified]
  85. ## Security
  86. As Markdown is sometimes used for HTML, and improper use of HTML can open you up
  87. to a [cross-site scripting (XSS)][xss] attack, use of remark can also be unsafe.
  88. When going to HTML, use remark in combination with the [**rehype**][rehype]
  89. ecosystem, and use [`rehype-sanitize`][sanitize] to make the tree safe.
  90. Use of remark plugins could also open you up to other attacks.
  91. Carefully assess each plugin and the risks involved in using them.
  92. ## Contribute
  93. See [`contributing.md`][contributing] in [`remarkjs/.github`][health] for ways
  94. to get started.
  95. See [`support.md`][support] for ways to get help.
  96. Ideas for new plugins and tools can be posted in [`remarkjs/ideas`][ideas].
  97. A curated list of awesome remark resources can be found in [**awesome
  98. remark**][awesome].
  99. This project has a [code of conduct][coc].
  100. By interacting with this repository, organization, or community you agree to
  101. abide by its terms.
  102. ## Sponsor
  103. Support this effort and give back by sponsoring on [OpenCollective][collective]!
  104. <!--lint ignore no-html-->
  105. <table>
  106. <tr valign="middle">
  107. <td width="20%" align="center" colspan="2">
  108. <a href="https://www.gatsbyjs.org">Gatsby</a> 🥇<br><br>
  109. <a href="https://www.gatsbyjs.org"><img src="https://avatars1.githubusercontent.com/u/12551863?s=256&v=4" width="128"></a>
  110. </td>
  111. <td width="20%" align="center" colspan="2">
  112. <a href="https://vercel.com">Vercel</a> 🥇<br><br>
  113. <a href="https://vercel.com"><img src="https://avatars1.githubusercontent.com/u/14985020?s=256&v=4" width="128"></a>
  114. </td>
  115. <td width="20%" align="center" colspan="2">
  116. <a href="https://www.netlify.com">Netlify</a><br><br>
  117. <!--OC has a sharper image-->
  118. <a href="https://www.netlify.com"><img src="https://images.opencollective.com/netlify/4087de2/logo/256.png" width="128"></a>
  119. </td>
  120. <td width="10%" align="center">
  121. <a href="https://www.holloway.com">Holloway</a><br><br>
  122. <a href="https://www.holloway.com"><img src="https://avatars1.githubusercontent.com/u/35904294?s=128&v=4" width="64"></a>
  123. </td>
  124. <td width="10%" align="center">
  125. <a href="https://themeisle.com">ThemeIsle</a><br><br>
  126. <a href="https://themeisle.com"><img src="https://avatars1.githubusercontent.com/u/58979018?s=128&v=4" width="64"></a>
  127. </td>
  128. <td width="10%" align="center">
  129. <a href="https://boosthub.io">Boost Hub</a><br><br>
  130. <a href="https://boosthub.io"><img src="https://images.opencollective.com/boosthub/6318083/logo/128.png" width="64"></a>
  131. </td>
  132. <td width="10%" align="center">
  133. <a href="https://expo.io">Expo</a><br><br>
  134. <a href="https://expo.io"><img src="https://avatars1.githubusercontent.com/u/12504344?s=128&v=4" width="64"></a>
  135. </td>
  136. </tr>
  137. <tr valign="middle">
  138. <td width="100%" align="center" colspan="10">
  139. <br>
  140. <a href="https://opencollective.com/unified"><strong>You?</strong></a>
  141. <br><br>
  142. </td>
  143. </tr>
  144. </table>
  145. ## License
  146. [MIT][license] © [Titus Wormer][author]
  147. <!-- Definitions -->
  148. [build-badge]: https://img.shields.io/travis/remarkjs/remark.svg
  149. [build]: https://travis-ci.org/remarkjs/remark
  150. [coverage-badge]: https://img.shields.io/codecov/c/github/remarkjs/remark.svg
  151. [coverage]: https://codecov.io/github/remarkjs/remark
  152. [downloads-badge]: https://img.shields.io/npm/dm/remark.svg
  153. [downloads]: https://www.npmjs.com/package/remark
  154. [size-badge]: https://img.shields.io/bundlephobia/minzip/remark.svg
  155. [size]: https://bundlephobia.com/result?p=remark
  156. [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
  157. [backers-badge]: https://opencollective.com/unified/backers/badge.svg
  158. [collective]: https://opencollective.com/unified
  159. [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg
  160. [chat]: https://github.com/remarkjs/remark/discussions
  161. [health]: https://github.com/remarkjs/.github
  162. [contributing]: https://github.com/remarkjs/.github/blob/HEAD/contributing.md
  163. [support]: https://github.com/remarkjs/.github/blob/HEAD/support.md
  164. [coc]: https://github.com/remarkjs/.github/blob/HEAD/code-of-conduct.md
  165. [ideas]: https://github.com/remarkjs/ideas
  166. [awesome]: https://github.com/remarkjs/awesome-remark
  167. [license]: https://github.com/remarkjs/remark/blob/main/license
  168. [author]: https://wooorm.com
  169. [npm]: https://docs.npmjs.com/cli/install
  170. [unified]: https://github.com/unifiedjs/unified
  171. [mdast]: https://github.com/syntax-tree/mdast
  172. [parse]: https://github.com/remarkjs/remark/blob/main/packages/remark-parse
  173. [stringify]: https://github.com/remarkjs/remark/blob/main/packages/remark-stringify
  174. [plugins]: https://github.com/remarkjs/remark/blob/main/doc/plugins.md
  175. [unified-usage]: https://github.com/unifiedjs/unified#usage
  176. [preset]: https://github.com/unifiedjs/unified#preset
  177. [data]: https://github.com/unifiedjs/unified#processordatakey-value
  178. [xss]: https://en.wikipedia.org/wiki/Cross-site_scripting
  179. [rehype]: https://github.com/rehypejs/rehype
  180. [sanitize]: https://github.com/rehypejs/rehype-sanitize
  181. [micromark]: https://github.com/micromark/micromark