Socket
Book a DemoInstallSign in
Socket

mark-down-style

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mark-down-style

Markdown Style.

0.0.10
latest
Source
npmnpm
Version published
Weekly downloads
10
900%
Maintainers
1
Weekly downloads
 
Created
Source

Markdown Style

Based on github-markdown-css.

Install

npm i mark-down-style

Supported sass variables

/* the container's className */
$containerClassName:          md-style !default;

/* heading font size */
$base-font-size:              12px !default;
$h1-font-size:                $base-font-size + 2 * 6  !default;
$h2-font-size:                $base-font-size + 2 * 5 !default;
$h3-font-size:                $base-font-size + 2 * 4 !default;
$h4-font-size:                $base-font-size + 2 * 3 !default;
$h5-font-size:                $base-font-size + 2 * 2 !default;
$h6-font-size:                $base-font-size + 2 * 1 !default;

/* pre background color */
$pre-bg-color:                #333 !default;
$pre-shadow-opacity:          50% !default;
$pre-font-size:               $base-font-size !default;

/* inline `code`  */
$code-font-color:             #b8341e !default;

Supported CSS 3 variables

--pre-bg-color: #{$pre-bg-color};
--pre-shadow-opacity: #{$pre-shadow-opacity};
--pre-font-size: #{$pre-font-size};
--code-font-color: #{$code-font-color};

You can rewrite css 3 variables like below:

.md-style {
  --pre-bg-color: #eee !important;
  --pre-shadow-opacity: 10% !important;
  --code-font-size: 13px !important;
  --code-font-color: blue !important;
}

Keywords

markdown style

FAQs

Package last updated on 02 Nov 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.