0.0.1-beta.5 • Published 7 years ago

@revector/asciidoctor-panel v0.0.1-beta.5

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

AsciiDoctor Panel

An Angular2 component for displaying embedded AsciiDoctor content.

Installation

> npm install --save asciidoctorjs-web-repack @revector/asciidoctor-panel

Dependencies

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>