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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # PostCSS Markdown Syntax
  2. [![NPM version](https://img.shields.io/npm/v/@stylelint/postcss-markdown.svg)](https://www.npmjs.org/package/@stylelint/postcss-markdown) [![Build Status](https://github.com/stylelint/postcss-markdown/workflows/CI/badge.svg)](https://github.com/stylelint/postcss-markdown/actions)
  3. <img align="right" width="95" height="95"
  4. title="Philosopher’s stone, logo of PostCSS"
  5. src="http://postcss.github.io/postcss/logo.svg">
  6. [PostCSS](https://github.com/postcss/postcss) Syntax for parsing [Markdown](https://daringfireball.net/projects/markdown/syntax)
  7. ## Getting Started
  8. First thing's first, install the module:
  9. ```
  10. npm install postcss-syntax postcss-markdown --save-dev
  11. ```
  12. If you want support SCSS/SASS/LESS/SugarSS syntax, you need to install the corresponding module.
  13. - SCSS: [postcss-scss](https://github.com/postcss/postcss-scss)
  14. - SASS: [postcss-sass](https://github.com/aleshaoleg/postcss-sass)
  15. - LESS: [postcss-less](https://github.com/shellscape/postcss-less)
  16. - SugarSS: [sugarss](https://github.com/postcss/sugarss)
  17. ## Use Cases
  18. ```js
  19. var syntax = require("postcss-syntax")({
  20. // Enable support for HTML (default: true) See: https://github.com/gucong3000/postcss-html
  21. htmlInMd: true,
  22. // syntax for parse scss (non-required options)
  23. scss: require("postcss-scss"),
  24. // syntax for parse less (non-required options)
  25. less: require("postcss-less"),
  26. // syntax for parse css blocks (non-required options)
  27. css: require("postcss-safe-parser")
  28. });
  29. var autoprefixer = require("autoprefixer");
  30. postcss([autoprefixer])
  31. .process(source, { syntax: syntax })
  32. .then(function(result) {
  33. // An alias for the result.css property. Use it with syntaxes that generate non-CSS output.
  34. result.content;
  35. });
  36. ```
  37. input:
  38. <pre><code># title
  39. ```css
  40. ::placeholder {
  41. color: gray;
  42. }
  43. ```
  44. </code></pre>
  45. output:
  46. <pre><code># title
  47. ```css
  48. ::-webkit-input-placeholder {
  49. color: gray;
  50. }
  51. :-ms-input-placeholder {
  52. color: gray;
  53. }
  54. ::-ms-input-placeholder {
  55. color: gray;
  56. }
  57. ::placeholder {
  58. color: gray;
  59. }
  60. ```
  61. </code></pre>
  62. If you want support SCSS/SASS/LESS/SugarSS syntax, you need to install these module:
  63. - SCSS: [postcss-scss](https://github.com/postcss/postcss-scss)
  64. - SASS: [postcss-sass](https://github.com/aleshaoleg/postcss-sass)
  65. - LESS: [postcss-less](https://github.com/shellscape/postcss-less)
  66. - SugarSS: [sugarss](https://github.com/postcss/sugarss)
  67. ## Advanced Use Cases
  68. See: [postcss-syntax](https://github.com/gucong3000/postcss-syntax)
  69. ## Style Transformations
  70. The main use case of this plugin is apply PostCSS transformations to CSS (and CSS-like) code blocks in markdown file.