Skip to content

A modern, real-time AsciiDoc editor and previewer built with Next.js and shadcn/ui components. This editor provides a split-screen interface for editing AsciiDoc markup and seeing the rendered preview in real-time.

License

Notifications You must be signed in to change notification settings

Technical-writing-mentorship-program/Asciidoc-editor

Repository files navigation

AsciiDoc Editor

A modern, real-time AsciiDoc editor and previewer built with Next.js and shadcn/ui components. This editor provides a split-screen interface for editing AsciiDoc markup and seeing the rendered preview in real-time.

AsciiDoc Editor Screenshot

Features

  • ✨ Real-time preview
  • 🎨 Modern, clean interface
  • 📱 Responsive design
  • ⌨️ Syntax highlighting
  • 🖥️ Fullscreen mode for both editor and preview
  • 🎯 Support for common AsciiDoc elements:
    • Headers (multiple levels)
    • Text formatting (bold, italic, monospace)
    • Ordered and unordered lists
    • Horizontal rules
    • Code blocks

Getting Started

Prerequisites

  • Node.js 16.8 or later
  • npm or yarn package manager

Installation

  1. Clone the repository:
git clone https://github.com/Technical-writing-mentorship-program/Asciidoc-editor.git
cd asciidoc-editor
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open http://localhost:3000 in your browser.

Building for Production

npm run build
npm run start

Project Structure

asciidoc-editor/
├── src/
│   ├── app/
│   │   ├── globals.css
│   │   ├── layout.tsx
│   │   └── page.tsx
│   └── components/
│       ├── ui/
│       │   ├── button.tsx
│       │   └── card.tsx
│       └── asciidoc-editor.tsx
├── public/
├── tailwind.config.js
├── package.json
└── README.md

Technologies Used

Supported AsciiDoc Syntax

Headers

= Level 1 Header
== Level 2 Header
=== Level 3 Header
==== Level 4 Header

Text Formatting

*bold text*
//italic text//
`monospace text`

Lists

* Unordered list item
* Another item

1. Ordered list item
2. Another ordered item

Horizontal Rule

'''

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Future Improvements

  • Add support for tables
  • Implement file saving/loading
  • Add more AsciiDoc syntax features
  • Add keyboard shortcuts
  • Implement syntax highlighting in the editor
  • Add export options (PDF, HTML)
  • Add support for images and diagrams
  • Implement search and replace functionality
  • Add collaborative editing features

Support

If you have any questions or run into issues, please open an issue in the GitHub repository.


Made with ❤️ by Wisdom Nwokocha & Prince Onyeanuna

About

A modern, real-time AsciiDoc editor and previewer built with Next.js and shadcn/ui components. This editor provides a split-screen interface for editing AsciiDoc markup and seeing the rendered preview in real-time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •