Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vincent/ngx-textile
- Owner: vincent
- License: mit
- Created: 2024-08-26T16:41:08.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-17T19:43:37.000Z (25 days ago)
- Last Synced: 2024-11-17T19:49:06.069Z (25 days ago)
- Language: TypeScript
- Size: 150 KB
- Stars: 0
- 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). (Table of contents / Third Party Components)
- fucking-awesome-angular - ngx-textile - Use the Textile markup language in your Angular project using <b><code> 212⭐</code></b> <b><code> 47🍴</code></b> [textile-js](https://github.com/borgar/textile-js)). (Table of contents / Third Party Components)
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`