3.13.0 • Published 6 years ago

ng-realmark v3.13.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

NG-RealMark

Real-time Markdown module for Angular.io.

dependencies Status devDependencies Status

Features

  • Markdown preview component,
  • Markdown diff component,
  • Markdown three way merge component,

Live example here

Install (Angular CLI project)

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: [ …
    RealMarkModule.forRoot({flavor: 'github'}), // or original or vanilla
    …
	]…

Step 3: Add stylesheet to angular.cli

"styles": [
  ...
	"../node_modules/ng-realmark/realmark.css"
  ...
],

Usage

Component 1 - Previewer

<realmark-previewer [content]="markdownContentVar" > </realmark-previewer>

Automatic code block wrapping can be achieve be adding the [codeBlock]=“‘js’” attribute. E.g.

<realmark-previewer [content]="codeContentVar" [codeBlock]="'js'" > </realmark-previewer>

Component 2 - Diff

<realmark-diff [content]="MarkDownNewContent" [original]="MarkDownOriginalContent">
	Title to be displayed
</realmark-diff>

Automatic code block wrapping can be achieve be adding the [codeBlock]=“‘js’” attribute. E.g.

<realmark-diff [content]="CodeNewContent" [original]="CodeOriginalContent" [codeBlock]="'js'" >
	Title to be displayed
</realmark-diff>

Prerequisites

Please install Node.js and npm if they are not already installed on your computer.

Verify that you are running at least node v6.x.x and npm 3.x.x by running node -v and npm -v in a terminal / console window. Older versions may produce errors.

3.13.0

6 years ago

3.12.0

6 years ago

3.11.1

6 years ago

3.11.0

6 years ago

2.3.7

7 years ago

2.3.6

7 years ago

2.3.5

7 years ago

2.3.4

7 years ago

2.3.3

7 years ago

2.3.2

7 years ago

2.3.1

7 years ago

2.3.0

7 years ago

2.2.15

7 years ago

2.2.14

7 years ago

2.2.13

7 years ago

2.2.12

7 years ago

2.2.11

7 years ago

2.2.10

7 years ago

2.2.9

7 years ago

2.2.8

7 years ago

2.2.7

7 years ago

2.2.6

7 years ago

2.2.5

7 years ago

2.2.4

7 years ago

2.2.3

7 years ago

2.2.2

7 years ago

0.0.1

7 years ago

2.1.6

7 years ago

2.1.5

7 years ago

2.1.4

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.23

7 years ago

2.0.22

7 years ago

2.0.21

7 years ago

2.0.20

7 years ago

2.0.19

7 years ago

2.0.18

7 years ago

2.0.17

7 years ago

2.0.16

7 years ago

2.0.15

7 years ago

2.0.14

7 years ago

2.0.13

7 years ago

2.0.12

7 years ago

2.0.11

7 years ago

2.0.10

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago