@stylelint/postcss-markdown

WebJar for @stylelint/postcss-markdown

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

stylelint__postcss-markdown
Last Version

Last Version

0.36.1
Release Date

Release Date

Type

Type

jar
Description

Description

@stylelint/postcss-markdown
WebJar for @stylelint/postcss-markdown
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/stylelint/postcss-markdown

Download stylelint__postcss-markdown

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/stylelint__postcss-markdown/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>stylelint__postcss-markdown</artifactId>
    <version>0.36.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/stylelint__postcss-markdown/
implementation 'org.webjars.npm:stylelint__postcss-markdown:0.36.1'
// https://jarcasting.com/artifacts/org.webjars.npm/stylelint__postcss-markdown/
implementation ("org.webjars.npm:stylelint__postcss-markdown:0.36.1")
'org.webjars.npm:stylelint__postcss-markdown:jar:0.36.1'
<dependency org="org.webjars.npm" name="stylelint__postcss-markdown" rev="0.36.1">
  <artifact name="stylelint__postcss-markdown" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='stylelint__postcss-markdown', version='0.36.1')
)
libraryDependencies += "org.webjars.npm" % "stylelint__postcss-markdown" % "0.36.1"
[org.webjars.npm/stylelint__postcss-markdown "0.36.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : remark jar [12.0.0,13)
org.webjars.npm : unist-util-find-all-after jar [3.0.1,4)

Project Modules

There are no modules declared in this project.

PostCSS Markdown Syntax

NPM version Build Status

PostCSS Syntax for parsing Markdown

Getting Started

First thing's first, install the module:

npm install postcss-syntax postcss-markdown --save-dev

If you want support SCSS/SASS/LESS/SugarSS syntax, you need to install the corresponding module.

Use Cases

var syntax = require("postcss-syntax")({
  // Enable support for HTML (default: true) See: https://github.com/gucong3000/postcss-html
  htmlInMd: true,
  // syntax for parse scss (non-required options)
  scss: require("postcss-scss"),
  // syntax for parse less (non-required options)
  less: require("postcss-less"),
  // syntax for parse css blocks (non-required options)
  css: require("postcss-safe-parser")
});
var autoprefixer = require("autoprefixer");
postcss([autoprefixer])
  .process(source, { syntax: syntax })
  .then(function(result) {
    // An alias for the result.css property. Use it with syntaxes that generate non-CSS output.
    result.content;
  });

input:

# title

```css
::placeholder {
	color: gray;
}
```

output:

# title

```css
::-webkit-input-placeholder {
	color: gray;
}
:-ms-input-placeholder {
	color: gray;
}
::-ms-input-placeholder {
	color: gray;
}
::placeholder {
	color: gray;
}
```

If you want support SCSS/SASS/LESS/SugarSS syntax, you need to install these module:

Advanced Use Cases

See: postcss-syntax

Style Transformations

The main use case of this plugin is apply PostCSS transformations to CSS (and CSS-like) code blocks in markdown file.

org.webjars.npm

stylelint

A mighty, modern CSS linter

Versions

Version
0.36.1