@tangential/asciidoctor-panel
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.0-beta.6 • Public • Published

    AsciiDoctor Panel

    An Angular2 component for displaying embedded AsciiDoctor content.

    Installation

    > npm install --save asciidoctor.js @tangential/asciidoctor-panel

    Dependencies

    Use

    Somewhere in your code, prior to loading the Module, you will need to load the AsciiDoctor.js file:

    In your module (e.g.app.module.ts):

    // import the module
    import {TanjAsciidoctorPanelModule} from '@tangential/asciidoctor-panel';
    
    // and register it as an import: 
    @NgModule({
      declarations: [
        AppComponent,
        ...
      ],
      imports: [
        AsciidoctorPanelModule,
        ...
      ],
      entryComponents: [AppComponent],
      bootstrap: [AppComponent]
    })

    And reference it in your component:

    <md-card>
      <tanj-asciidoctor-panel style="white-space:normal;overflow-wrap: normal;overflow: auto" [content]="asciidoctorContent"></tanj-asciidoctor-panel>
    </md-card>

    Install

    npm i @tangential/asciidoctor-panel

    DownloadsWeekly Downloads

    1

    Version

    0.2.0-beta.6

    License

    GPL-3.0

    Last publish

    Collaborators

    • tangential