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

marked-govspeak-extension

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

marked-govspeak-extension

Extensions for marked.js providing support for govspeak markdown syntax

0.0.2
unpublished
latest
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

MArked Govspeak Extension

** Super Alpha - probably not for production use! **

A set of extensions for marked.js that add support for govspeak markdown syntax.

Also contains a marked renderer that can add GDS classes on to headings and links.

Usage

import {marked} from 'marked';
import govspeakExtension, {govukRenderer} from 'marked-govspeak-extension'
    
marked.use(govukRenderer)
marked.use(govspeakExtension)

Currently only supports 'call to action' and 'warning' syntax for govspeak.

N.B. You will need to be using govuk-frontend and the Govspeak gem, or otherwise be including those styles in your project in order for things to look right.

FAQs

Package last updated on 17 May 2023

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