Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/vincent/ngx-textile

Use Textile markup language in your Angular project
https://github.com/vincent/ngx-textile

Last synced: 22 days ago
JSON representation

Use Textile markup language in your Angular project

Awesome Lists containing this project

README

        

# NgxTextile

Use Textile markup language in your Angular project, using [textile-js](https://github.com/borgar/textile-js)

## Demo

[//vincent.github.io/ngx-textile](https://vincent.github.io/ngx-textile)

## Within a template

```typescript
import { Component } from '@angular/core';
import { NgxTextilePipe } from 'ngx-textile';

@Component({
imports: [NgxTextilePipe],
template: `


`,
})
export class TestTextileComponent {
text = 'a _shorthand syntax_ used to generate valid HTML'
}
```

## With the service

```typescript
import { Component, inject } from '@angular/core';
import { NgxTextileService } from 'ngx-textile';

@Component({
template: `


`,
})
export class TestTextileComponent {
#textile = inject(NgxTextileService)
text = this.#textile.parse('a _shorthand syntax_ used to generate valid HTML')
}
```

## Install

`npm i ngx-textile`