Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-realmark

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-realmark

Real-time Markdown (w/ code highlighting) angular2

  • 2.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
increased by475%
Maintainers
1
Weekly downloads
 
Created
Source

ng-realmark

Markdown module for Angular with real-time code highlighting provided by Prismjs and Showdown.

Usage

Step 1: Add module to project through npm npm install ng-realmark --save

Step 2: Reference in main NgModule

import {RealMarkModule} from "ng-realmark/ng-realmark";

@NgModule({
  imports: [
    BrowserModule,
    RealMarkModule ...

Step 3: Add to element w/ automatic code block wrapping ```js

<div RealMark [code]="'js'" [markdowninput]="input.text"></div>

Step 4: Add prismjs stylesheet to style.css

@import url('https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/themes/prism.min.css');

Keywords

FAQs

Package last updated on 06 Apr 2017

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