New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postcss-markdown

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-markdown

PostCSS Syntax for parsing HTML / Markdown / Vue Component

  • 0.19.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
191K
decreased by-19.22%
Maintainers
1
Weekly downloads
 
Created
Source

PostCSS HTML Syntax

NPM version Travis Codecov David

PostCSS Syntax for parsing:

Getting Started

First thing's first, install the module:

npm install 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-markdown');
postcss(plugins).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
});

Style Transformations

The main use case of this plugin is to apply PostCSS transformations to HTML / Markdown / Vue component. For example, if you need to lint SCSS in *.vue with Stylelint; or you need add vendor prefixes to CSS in *.html with Autoprefixer.

Syntax Infer for Stylesheet Files

When passing a stylesheet file, syntaxe can automatically be inferred from the following file extensions: .less, .sass, .scss and .sss, others will be inferred as CSS.

Custom unknown syntax

var syntax = require('postcss-markdown');
postcss(plugins).process(html, {
	syntax: syntax({
		stylus: require('postcss-stylus')
	})
}).then(function (result) {
	result.content
});

Keywords

FAQs

Package last updated on 09 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc