Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

md2gost

Latest version: v1.8.0

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: mixelte
23 Stars
1 Forks
10 Versions
668 Downloads
TypeScript Repo language

Scan summary

md2gost was last scanned on 30 Nov 2026 at version 1.8.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 10 versions; the latest 3 were published within 4 days (27–30 Nov 2026).
  • Findings: No rules fired in version 1.8.0.
  • Downloads: 668 downloads.

Versions

10 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.8.0 LATEST 30 Nov 2026 No rules fired
1.7.2 27 Nov 2026 No rules fired
1.7.1 27 Nov 2026 No rules fired
1.7.0 21 Nov 2026 Not shown
1.6.1 10 Oct 2026 Not shown

No rules fired in 1.8.0

Findings

Findings for v1.8.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.8.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

md2gost

Render Markdown files into formatted DOCX and PDF documents with automatic GOST formatting.

The project is available in two forms:

  • npm package – CLI and JavaScript/TypeScript API.
  • VS Code extension – editor integration with Markdown preview, DOCX viewer, table editor, and one-click export.

💡 The Markdown syntax and rendering engine are identical in both versions. All documentation below applies to both.

🤖 For AI agents: before writing or editing a report with md2gost, read the md2gost-report skill and load its references as directed. You can follow these files for the current task without installing the skill. To locate the bundled copy, see AI-agent skill.

👻 Quick start

Installation
npm install md2gost

or install the CLI globally:

npm install -g md2gost
CLI

Render a document:

md2gost report.md

Render directly to PDF:

md2gost report.md --format pdf

Specify an output path:

md2gost report.md -o dist/
md2gost report.md -o dist/report.docx
md2gost report.md -o dist/report.pdf

Show the utility version or bundled report skill metadata without rendering:

md2gost --version
md2gost --skill-info

--skill-info prints JSON: version is the utility version; skill contains its name, independent version, associated md2gostVersion and absolute path to SKILL.md.

Options:

Option Description
-V, --version Print the utility version
--skill-info Print bundled report skill metadata as JSON
-o, --output <path> Output file or directory
-f, --format <docx\|pdf> Output format
--engine <auto\|word\|libreoffice> Office postprocessor (default: auto)
-k, --keep-intermediate-docx Keep intermediate DOCX after PDF generation
-d, --disable-macros Disable office postprocessing (PDF unavailable)
--check-files-inside <path> Restrict referenced files to this directory (default: working directory)
-x, --allow-files-outside Allow references outside that directory
JavaScript / TypeScript
import renderMarkdown from "md2gost";

const result = await renderMarkdown({
    input: "./report.md",
    output: "./report.pdf",
    engine: "auto",
    progress(percent, message) {
        console.log(`${percent}% ${message}`);
    }
});

console.log(result.filePath);

The exported API consists of:

  • renderMarkdown(config)
  • MDRenderConfig
  • MDRenderResult
  • MDRenderError
  • reverseDocx(config), MDReverseConfig, MDReverseResult
  • inspectDocx(config), MDInspectConfig, MDInspectResult

See the type definitions for the complete API reference.

Document variables

Pass variables to the main document through MDRenderConfig.variables:

await renderMarkdown({
    input: "./report.g.md",
    variables: {
        author: "Ivanov I.I.",
        settings: { compact: true }
    }
});

These variables are also inherited by included Markdown files.

Template limits

Use MDRenderConfig.templateOptions to limit processing of complex templates or templates from external sources:

await renderMarkdown({
    input: "./report.g.md",
    variables: { showResults: true, results: ["First", "Second"] },
    templateOptions: {
        allowLoops: true,
        allowIncludes: true,
        maxTotalIterations: 2000,
        maxIncludeDepth: 100
    }
});

Other available limits are maxLoopIterations, maxDepth, maxIncludes, maxFileLength, maxTotalInputLength and maxGeneratedLength.

✨ Features

  • Export Markdown → DOCX / PDF
  • Reverse DOCX into editable .g.md and inspect its contents
  • Autonumbering (figures, tables, code listings, references)
  • Generate a table of contents
  • Support for the GOST structure of term papers
  • AI-agent skill for writing reports in .g.md
  • Inserting other DOCX/PDF files (e.g., title page)
  • Automatically adds “Continued from table/listing #” when tables or listings span multiple pages
  • Code highlighting (optional)
  • Automatic replacement of “AI” dashes with regular dashes

⚙️ Requirements

Basic rendering
  • Node.js >= 22.12.0 (required by the CLI dependency commander)
Full rendering and PDF generation
  • Microsoft Word on Windows, or
  • LibreOffice Writer and Python 3.10+ with UNO on Windows/Linux/macOS (macOS untested).

On Debian/Ubuntu install libreoffice-writer libreoffice-math python3-uno; on Windows use LibreOffice's bundled Python.

engine: auto (default), word, or libreoffice. Auto uses Word when available on Windows, otherwise LibreOffice. For CLI/API with nonstandard installations set SOFFICE_PATH to the LibreOffice executable and UNO_PYTHON_PATH to a Python interpreter with UNO support. These are executable paths, not directories; without overrides the runtime is detected automatically.

Microsoft fonts are optional; fonts can be selected through style rules.

For basic DOCX generation without an office engine, use disableMacros: true.

Docker
docker build -t md2gost .
docker run --rm -v "${PWD}:/data" md2gost report.g.md --format pdf

The image includes LibreOffice, Python UNO and free fonts. Keep the source and referenced files inside the mounted directory; output is written there too. On Linux, add --user "$(id -u):$(id -g)" before the image name to preserve file ownership.

📖 Documentation

  • AI-agent skill
  • DOCX reverse conversion
  • Шаблон курсовой работы
  • Настройка стилей
  • Поддерживаемый синтаксис Markdown:
    • Текст
    • Заголовки
    • Списки
    • Картинки
    • Листинг
    • Таблицы
    • Формулы
    • Комментарии
    • Блоки Admonition
    • Разрыв страницы
  • Дополнительный синтаксис:
    • Правила (!!rule)
    • Оглавление
    • Разрыв раздела
    • Колонтитулы
    • Автонумерация
    • Вставка DOCX, PDF и Markdown
    • Автозамены
  • Переключаемые функции:
    • Подсветка синтаксиса кода
    • Подпись названия и автора
    • Что-то ещё

DOCX reverse conversion

Convert a DOCX file into editable .g.md and extract its embedded images:

md2gost reverse report.docx -o imported/report.g.md

The default output is <input name>.g.md beside the DOCX. Existing Markdown files are preserved unless --force is supplied. Images go into a new adjacent <output name>.images directory; an occupied directory name receives a numeric suffix. Existing image directories are preserved even with --force.

Read the body text and structure without creating files:

md2gost inspect report.docx
md2gost inspect report.docx --format json

Inspection prints text or JSON to stdout and warnings to stderr. JSON includes image metadata, without embedded bytes. Neither command needs Word or LibreOffice.

import { reverseDocx, inspectDocx } from "md2gost";

const result = await reverseDocx({
    input: "./report.docx",
    output: "./imported/report.g.md",
    overwrite: false
});
console.log(result.filePath, result.images, result.warnings);

const inspection = await inspectDocx({ input: "./report.docx", format: "json" });
console.log(JSON.parse(inspection.content));

Both functions accept abortSignal. Warnings contain code, message and an optional block number matching inspection output.

The importer preserves body text, basic emphasis, styled headings, simple lists and tables, embedded images and recognized code listings. Listing recognition uses known styles or the effective monospace font of a whole paragraph; code language defaults to text. Existing numbers remain explicit, and all links become their visible text. Cached table-of-contents entries are replaced by an md2gost contents heading.

OMML formulas, merged or nested tables, embedded objects and other unsupported content require review. Warnings and Markdown comments identify affected blocks and retain available text. Unsupported image formats are extracted for manual conversion. The result is an editable source; original layout, pagination and arbitrary local formatting are not reproduced.

AI-agent skill

The package includes md2gost-report, a skill for writing reports in .g.md with captions, references, illustrations and optional rendering.

Find the bundled skill without a global CLI installation:

npx --yes --package md2gost@latest -- md2gost --skill-info

The JSON contains the utility version and a skill object: its independent version, associated md2gostVersion, name and absolute path to SKILL.md. Copy the entire containing md2gost-report directory, including references, into your agent's skills directory. With an installed CLI, use md2gost --skill-info.

For Codex, use .agents/skills/md2gost-report/ in a project or ~/.agents/skills/md2gost-report/ for all projects, then invoke $md2gost-report. An available skill can also be selected automatically from the task description.

For a regular chat without skill support, download the chat instructions and attach the file together with the assignment and project materials. For example:

Prepare a report for md2gost using the attached assignment. Follow the instructions in md2gost-report-chat.md.

The file contains the report-writing rules and essential syntax; reading the README separately is unnecessary. For specific formatting requirements, also attach the style reference. If rendering tools are unavailable in the chat, save the resulting .g.md and export it locally with the extension or CLI.

Написание курсовой работы

При рендере md2gost автоматически формирует специфические разделы курсовой работы согласно ГОСТ.

В связи с различными требованиями к оформлению, вам может понадобится изменить настройки стилей. Строка !!rule numbering lazy включает ленивую автонумерацию для всех элементов.

Шаблон файла

Используйте этот скелет как основу вашего .g.md файла. Заголовки, написанные капсом, являются ключевыми словами, активирующими автоматику.

!!rule numbering lazy
!!(title.docx){}
!!section from 3

# РЕФЕРАТ
ключевые, слова, 5-15 штук

Текст реферата на одной странице.

# СОДЕРЖАНИЕ

# ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
* Термин: Определение после двоеточия
* DOM: Объектная модель документа...
* Git: Система контроля версий...

# ПЕРЕЧЕНЬ СОКРАЩЕНИЙ И ОБОЗНАЧЕНИЙ
* HTML - HyperText Markup Language
* JS - JavaScript

# ВВЕДЕНИЕ
Текст...

# 1 Основная часть
## 1.1 Подраздел
Текст с ссылкой на источник [[mdn]].
Текст с ссылкой на картинку [#] (или [cat]).
![[cat] Кот](cat1.png)
Текст с ссылкой на картинку [cat].

## 1.2 Подраздел
Текст с ссылкой на приложение [код] и на листинг [кодhtml] в нём.

# ЗАКЛЮЧЕНИЕ
...

# СПИСОК ИСПОЛЬЗОВАННЫХ ИСТОЧНИКОВ
[s1] Источник 1
[mdn] Документация MDN Web Docs [Электронный ресурс]. – URL: https://developer.mozilla.org/

# ПРИЛОЖЕНИЯ
## [код] Код приложения
```html [кодhtml] Шаблон html страницы
<!DOCTYPE html>
<html lang="en">
</html>
```
## [imgs] Графический материал
![[just_cat] Кот обыкновенный](cat1.png)
![[imgs_кот] Кот необыкновенный](cat2.png)
Особенности автоматизации разделов

При использовании указанных выше заголовков, md2gost применяет к ним специальную логику:

Раздел Что делает автоматика
РЕФЕРАТ Добавляет строку со статистикой: Отчет x с., x рис., x табл., x лист., x источн. Ключевые слова автоматически переводятся в ВЕРХНИЙ РЕГИСТР.
СОДЕРЖАНИЕ Генерирует иерархический список всех разделов с указанием страниц. Длинные названия продолжаются под первым словом после номера.
ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ Вставляет фразу «В настоящем отчете применяются следующие термины...» и преобразует список в таблицу.
ПЕРЕЧЕНЬ СОКРАЩЕНИЙ... Вставляет фразу «В настоящем отчете применяют следующие сокращения...».
ИСТОЧНИКИ Автоматически нумерует и сортирует источники в порядке их первого упоминания в тексте.
ПРИЛОЖЕНИЯ Выносит каждый подраздел на новую страницу. Нумерует приложения буквами (А, Б, В...).

Важные нюансы:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm md2gost

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229