https://github.com/vincent/ngx-textile
Use Textile markup language in your Angular project
https://github.com/vincent/ngx-textile
Last synced: 4 months ago
JSON representation
Use Textile markup language in your Angular project
- Host: GitHub
- URL: https://github.com/vincent/ngx-textile
- Owner: vincent
- License: mit
- Created: 2024-08-26T16:41:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-17T21:23:25.000Z (12 months ago)
- Last Synced: 2025-06-15T23:30:05.735Z (5 months ago)
- Language: TypeScript
- Size: 491 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-angular - ngx-textile - Use the Textile markup language in your Angular project using [textile-js](https://github.com/borgar/textile-js). (Third Party Components / Markdown)
- fucking-awesome-angular - ngx-textile - Use the Textile markup language in your Angular project using <b><code> 214⭐</code></b> <b><code> 49🍴</code></b> [textile-js](https://github.com/borgar/textile-js)). (Third Party Components / Markdown)
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`