English version below
Визуальный Markdown-редактор для сайта «Авторский Комикс». Редактор работает в визуальном режиме и в режиме исходного кода. Он поддерживает заголовки, списки, цитаты, ссылки, изображения, таблицы, разделители и базовое форматирование текста.
Редактор встраивается поверх <textarea> с классом acomicsMarkdownEditor. Исходное содержимое поля открывается в редакторе, а изменения автоматически записываются обратно:
<textarea name="..." class='acomicsMarkdownEditor'>**Текст для редактирования**</textarea>Для локального запуска потребуется Node.js 20 (рекомендуемая версия — 20.13.1).
-
Клонируйте репозиторий и перейдите в его каталог:
git clone https://github.com/mr9d/acomics-markdown-editor.git cd acomics-markdown-editor -
Установите зависимости:
npm ci. -
Соберите редактор:
npm run build. -
Откройте
demo/dev.htmlв браузере. Для автоматической пересборки используйтеnpm run watch.
Перед отправкой изменений выполните проверки: npm run lint, npm test и npm run build.
- TypeScript 5.8 (документация)
- React 19.2.8 (документация)
- MDXEditor 4.1.0 (документация)
- Webpack 5.99.6 (документация)
- ESLint 9.25.1 (документация)
Если вы обнаружили ошибку в работе редактора, создайте обращение в репозитории acomics-public. Опишите проблему, ожидаемый результат и шаги для её воспроизведения.
A visual Markdown editor for the Acomics website. The editor supports both visual and source-code modes, including headings, lists, blockquotes, links, images, tables, horizontal rules, and basic text formatting.
The editor is mounted over a <textarea> element with the acomicsMarkdownEditor class. The field's initial content is loaded into the editor, and changes are automatically written back to it:
<textarea name="..." class="acomicsMarkdownEditor">**Text to edit**</textarea>Node.js 20 is required for local development (version 20.13.1 is recommended).
-
Clone the repository and enter its directory:
git clone https://github.com/mr9d/acomics-markdown-editor.git cd acomics-markdown-editor -
Install the dependencies:
npm ci. -
Build the editor:
npm run build. -
Open
demo/dev.htmlin your browser. Usenpm run watchto rebuild automatically when files change.
Before submitting changes, run the checks: npm run lint, npm test, and npm run build.
- TypeScript 5.8 (documentation)
- React 19.2.8 (documentation)
- MDXEditor 4.1.0 (documentation)
- Webpack 5.99.6 (documentation)
- ESLint 9.25.1 (documentation)
If you find a bug in the editor, open an issue in the acomics-public repository. Describe the problem, the expected result, and the steps needed to reproduce it.