nuxt-asciidoc

Transformer for using asciidoc in nuxt
821 4
Install
npm install nuxt-asciidoc
Latest Version:1.0.4
Vue:3
License:MIT
Last Updated:Oct 11, 2024
Links: GitHub  ·  npm
Maintainer: chrizzly

nuxt-asciidoc

nuxt-asciidoc-logo

npm version npm downloads License Nuxt

If you like asciidoc more than markdown, this plugin is exactly for you.

Features

  • ⛰  It can handle .adoc and there corresponding file extensions and render them.

Known Problems

  • include will not include the content of another file, it will just make a link out of it. You can see it in the screenshot.

Screenshot

nuxt-asciidoc

Quick Setup

  1. Add nuxt-asciidoc dependency to your project
npx nuxi@latest module add nuxt-asciidoc
  1. Add nuxt-asciidoc to the modules section, before the @nuxt/content of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    'nuxt-asciidoc',
    ...
    '@nuxt/content'
  ]
})

That's it! You can now use My Module in your Nuxt app ✨

Example

view: pages/imprint.vue + corresponding content file: content/imprint.adoc

<script setup>
const { data } = await useAsyncData("imprint", () =>
  queryContent("/imprint").findOne()
);
</script>

<template>
  <main>
    <ContentDoc v-slot="{ doc }">
      <div v-html="doc.body"></div>
    </ContentDoc>
  </main>
</template>

Development (npm, yarn, pnpm)

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release

Related Packages

@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903
nuxt-tsconfig-stub

Stub Nuxt's generated tsconfig.json at installation

70,835 24
nuxt-content-transformer-toml

A TOML transformer for Nuxt Content

1,350 0
kuranuxt

Look at the Nuxt 3 documentation to learn more.

871 0
nuxt-define

One utility function for module authors to define compiler constants for all bui...

13,412,511

Version History

Version Released Vue License
1.0.4 ^3.0 MIT
1.0.3 ^3.0 MIT
1.0.2 ^3.0 MIT
1.0.1 ^3.0 MIT
1.0.0 ^3.0 MIT