Examples

Practical snippets for asciidoc-preview. All examples are AsciiDoc you write in your own documentation; the preview::[] macro is provided by the extension.

A basic Word-themed preview

preview::my-template.adoc[theme=word, dpi=300]

A Google Docs preview at lower DPI

preview::my-template.adoc[theme=google-docs, dpi=150]

A LibreOffice preview

preview::my-template.adoc[theme=libreoffice, dpi=300]

Next steps

  • Getting Started — add the dependency and embed your first preview.
  • Features — theming, caching, and SPI auto-registration.
Edit this page