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.
- ✨ 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
- Node.js 16.8 or later
- npm or yarn package manager
- Clone the repository:
git clone https://github.com/Technical-writing-mentorship-program/Asciidoc-editor.git
cd asciidoc-editor- Install dependencies:
npm install- Start the development server:
npm run dev- Open http://localhost:3000 in your browser.
npm run build
npm run startasciidoc-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
- Next.js - React framework
- shadcn/ui - UI components
- Tailwind CSS - CSS framework
- Lucide React - Icons
- TypeScript - Type safety
= Level 1 Header
== Level 2 Header
=== Level 3 Header
==== Level 4 Header*bold text*
//italic text//
`monospace text`* Unordered list item
* Another item
1. Ordered list item
2. Another ordered item'''- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- 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
If you have any questions or run into issues, please open an issue in the GitHub repository.
Made with ❤️ by Wisdom Nwokocha & Prince Onyeanuna
