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 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. # remark-parse
  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. [Parser][] for [**unified**][unified].
  10. Parses Markdown to [**mdast**][mdast] syntax trees.
  11. Built on [`micromark`][micromark] and
  12. [`mdast-util-from-markdown`][from-markdown].
  13. Used in the [**remark** processor][remark] but can be used on its own as well.
  14. Can be [extended][extend] to change how Markdown is parsed.
  15. ## Install
  16. [npm][]:
  17. ```sh
  18. npm install remark-parse
  19. ```
  20. ## Use
  21. ```js
  22. var unified = require('unified')
  23. var createStream = require('unified-stream')
  24. var markdown = require('remark-parse')
  25. var remark2rehype = require('remark-rehype')
  26. var html = require('rehype-stringify')
  27. var processor = unified().use(markdown).use(remark2rehype).use(html)
  28. process.stdin.pipe(createStream(processor)).pipe(process.stdout)
  29. ```
  30. [See **unified** for more examples »][unified]
  31. ## API
  32. [See **unified** for API docs »][unified]
  33. ### `processor().use(parse)`
  34. Configure the `processor` to read Markdown as input and process
  35. [**mdast**][mdast] syntax trees.
  36. ## Extending the parser
  37. See [`micromark`][micromark] and [`mdast-util-from-markdown`][from-markdown].
  38. Then create a wrapper plugin such as [`remark-gfm`][gfm].
  39. ## Security
  40. As Markdown is sometimes used for HTML, and improper use of HTML can open you up
  41. to a [cross-site scripting (XSS)][xss] attack, use of remark can also be unsafe.
  42. When going to HTML, use remark in combination with the [**rehype**][rehype]
  43. ecosystem, and use [`rehype-sanitize`][sanitize] to make the tree safe.
  44. Use of remark plugins could also open you up to other attacks.
  45. Carefully assess each plugin and the risks involved in using them.
  46. ## Contribute
  47. See [`contributing.md`][contributing] in [`remarkjs/.github`][health] for ways
  48. to get started.
  49. See [`support.md`][support] for ways to get help.
  50. Ideas for new plugins and tools can be posted in [`remarkjs/ideas`][ideas].
  51. A curated list of awesome remark resources can be found in [**awesome
  52. remark**][awesome].
  53. This project has a [code of conduct][coc].
  54. By interacting with this repository, organization, or community you agree to
  55. abide by its terms.
  56. ## Sponsor
  57. Support this effort and give back by sponsoring on [OpenCollective][collective]!
  58. <!--lint ignore no-html-->
  59. <table>
  60. <tr valign="middle">
  61. <td width="20%" align="center" colspan="2">
  62. <a href="https://www.gatsbyjs.org">Gatsby</a> 🥇<br><br>
  63. <a href="https://www.gatsbyjs.org"><img src="https://avatars1.githubusercontent.com/u/12551863?s=256&v=4" width="128"></a>
  64. </td>
  65. <td width="20%" align="center" colspan="2">
  66. <a href="https://vercel.com">Vercel</a> 🥇<br><br>
  67. <a href="https://vercel.com"><img src="https://avatars1.githubusercontent.com/u/14985020?s=256&v=4" width="128"></a>
  68. </td>
  69. <td width="20%" align="center" colspan="2">
  70. <a href="https://www.netlify.com">Netlify</a><br><br>
  71. <!--OC has a sharper image-->
  72. <a href="https://www.netlify.com"><img src="https://images.opencollective.com/netlify/4087de2/logo/256.png" width="128"></a>
  73. </td>
  74. <td width="10%" align="center">
  75. <a href="https://www.holloway.com">Holloway</a><br><br>
  76. <a href="https://www.holloway.com"><img src="https://avatars1.githubusercontent.com/u/35904294?s=128&v=4" width="64"></a>
  77. </td>
  78. <td width="10%" align="center">
  79. <a href="https://themeisle.com">ThemeIsle</a><br><br>
  80. <a href="https://themeisle.com"><img src="https://avatars1.githubusercontent.com/u/58979018?s=128&v=4" width="64"></a>
  81. </td>
  82. <td width="10%" align="center">
  83. <a href="https://boosthub.io">Boost Hub</a><br><br>
  84. <a href="https://boosthub.io"><img src="https://images.opencollective.com/boosthub/6318083/logo/128.png" width="64"></a>
  85. </td>
  86. <td width="10%" align="center">
  87. <a href="https://expo.io">Expo</a><br><br>
  88. <a href="https://expo.io"><img src="https://avatars1.githubusercontent.com/u/12504344?s=128&v=4" width="64"></a>
  89. </td>
  90. </tr>
  91. <tr valign="middle">
  92. <td width="100%" align="center" colspan="10">
  93. <br>
  94. <a href="https://opencollective.com/unified"><strong>You?</strong></a>
  95. <br><br>
  96. </td>
  97. </tr>
  98. </table>
  99. ## License
  100. [MIT][license] © [Titus Wormer][author]
  101. <!-- Definitions -->
  102. [build-badge]: https://img.shields.io/travis/remarkjs/remark.svg
  103. [build]: https://travis-ci.org/remarkjs/remark
  104. [coverage-badge]: https://img.shields.io/codecov/c/github/remarkjs/remark.svg
  105. [coverage]: https://codecov.io/github/remarkjs/remark
  106. [downloads-badge]: https://img.shields.io/npm/dm/remark-parse.svg
  107. [downloads]: https://www.npmjs.com/package/remark-parse
  108. [size-badge]: https://img.shields.io/bundlephobia/minzip/remark-parse.svg
  109. [size]: https://bundlephobia.com/result?p=remark-parse
  110. [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
  111. [backers-badge]: https://opencollective.com/unified/backers/badge.svg
  112. [collective]: https://opencollective.com/unified
  113. [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg
  114. [chat]: https://github.com/remarkjs/remark/discussions
  115. [health]: https://github.com/remarkjs/.github
  116. [contributing]: https://github.com/remarkjs/.github/blob/HEAD/contributing.md
  117. [support]: https://github.com/remarkjs/.github/blob/HEAD/support.md
  118. [coc]: https://github.com/remarkjs/.github/blob/HEAD/code-of-conduct.md
  119. [ideas]: https://github.com/remarkjs/ideas
  120. [awesome]: https://github.com/remarkjs/awesome-remark
  121. [license]: https://github.com/remarkjs/remark/blob/main/license
  122. [author]: https://wooorm.com
  123. [npm]: https://docs.npmjs.com/cli/install
  124. [unified]: https://github.com/unifiedjs/unified
  125. [remark]: https://github.com/remarkjs/remark/tree/main/packages/remark
  126. [mdast]: https://github.com/syntax-tree/mdast
  127. [parser]: https://github.com/unifiedjs/unified#processorparser
  128. [extend]: #extending-the-parser
  129. [xss]: https://en.wikipedia.org/wiki/Cross-site_scripting
  130. [rehype]: https://github.com/rehypejs/rehype
  131. [sanitize]: https://github.com/rehypejs/rehype-sanitize
  132. [micromark]: https://github.com/micromark/micromark
  133. [from-markdown]: https://github.com/syntax-tree/mdast-util-from-markdown
  134. [gfm]: https://github.com/remarkjs/remark-gfm