@revector/asciidoctor-panel
v0.0.1-beta.5
Published
UI pane for displaying ASCII Doctor formatted data.
Downloads
6
Maintainers
Readme
AsciiDoctor Panel
An Angular2 component for displaying embedded AsciiDoctor content.
Installation
> npm install --save asciidoctorjs-web-repack @revector/asciidoctor-panel
Dependencies
- Angular2 Core
- AsciiDoctor Web Repack A web-packaged version of the asciidoctor project.
Use
In your main app (e.g.app.module.ts):
// import the module
import {RvAsciidoctorPanelModule} from '@revector/asciidoctor-panel';
// and register it as an import:
@NgModule({
declarations: [
AppComponent,
...
],
imports: [
RvAsciidoctorPanelModule,
...
],
entryComponents: [AppComponent],
bootstrap: [AppComponent]
})
And reference it in your component:
<md-card>
<rv-asciidoctor-panel style="white-space:normal;overflow-wrap: normal;overflow: auto" [content]="asciidoctorContent"></rv-asciidoctor-panel>
</md-card>