An open API service indexing awesome lists of open source software.

https://github.com/angeeks/marked

Another markdown wrapper component for Angular, build with simplicity and clarity in mind. 🎉
https://github.com/angeeks/marked

angular markdown npm

Last synced: 20 days ago
JSON representation

Another markdown wrapper component for Angular, build with simplicity and clarity in mind. 🎉

Awesome Lists containing this project

README

          

# ngk-markdown aka ngk-md

[![Build Status](https://travis-ci.org/angeeks/marked.svg?branch=master)](https://travis-ci.org/angeeks/marked)
[![npm version](https://badge.fury.io/js/%40angeeks%2Ftesting.svg)](https://www.npmjs.com/package/@angeeks/md)

Another markdown wrapper component for Angular, build with simplicity and clarity in mind.
Note that by default, it use `marked.js` as the parser (that's why this project called), see [below](#replace-parser) to use your own parser.

# Installation

```
npm i -P @angeeks/md
```

# Usage

```diff
// app.module.ts
+import { MdModule } from '@angeeks/md';

@NgModule({
imports: [
+ MdModule
]
})
export class AppModule {}
```

```diff

```

# Replace parser

```diff
// app.module.ts
+import { mdParser, Parser } from '@angeeks/md';

+export function yourMarkdownParser(): Parser {
+ return { parse };
+}

@NgModule({
imports: [
MdModule
],
providers: [
+ { provide: mdParser, useFactory: yourMarkdownParser }
]
}
})
export class AppModule {}
```