FTB Quest Markdown
FTB Quest Markdown is an addon for FTB Quests that brings external Markdown documentation, offline LaTeX math rendering, Mermaid flowcharts, animated GIFs, resource-pack textures, and an interactive LaTeX Formula Helper directly into quest description pages.
Key Features
External Markdown Documents
- Reference external
.mdfiles directly from any quest description using{quest_markdown:path/to/doc.md}. - Built-in Insert Markdown Document entry inside FTB Quests' quest edit context menu.
- Automatic language fallback: resolves
<client_lang>/<path>first (e.g.,zh_cn/guide.md) and seamlessly falls back to the rootdocs/path. - Dedicated server & multiplayer sync: clients automatically fetch documents and local image/GIF assets from the server, with instant hot-reload via
/quest_markdown reload. - Rich Markdown layout: headings, bold/italic/strikethrough, blockquotes, ordered/unordered lists, task checklists, horizontal rules, inline code pills, fenced code blocks, auto-width tables, clickable links, and automatic quest window
min_widthadaptation. - Smooth system TrueType font rendering (body, dedicated bold, and monospace faces) with configurable font modes.
Offline LaTeX Math Formulas (Markdown & Vanilla Descriptions)
- Full offline LaTeX rendering with
$...$inline formulas and$$...$$display equations — supporting fractions, roots, superscripts/subscripts, integrals, summations, Greek letters, matrices, and piecewise equation systems (cases). - Works in both external Markdown documents and vanilla FTB Quests description lines, inheriting
&color codes automatically.
Interactive LaTeX Formula Helper (∑)
- Adds a
∑Formula Helper button directly to FTB Quests' multiline description editor toolbar, with live rendered preview, common template buttons, parameter input modals, and clickable quick-edit chips for modifying existing formulas. - Supports direct right-click or double-click formula editing right on rendered vanilla description equations while in edit mode.
Mermaid Flowcharts
- Native in-game rendering for
mermaidflowchart code blocks (flowchart/graphwithLR,TD,RL,BTdirections, node shapes, solid/dashed/thick arrows, edge labels, and subgraphs).
Local Images, Resource-Pack Textures & Animated GIFs
- Embed local PNG/JPG/GIF files from the
docs/directory (including relative../paths) or reference Minecraft resource-pack textures directly inside Markdown. - Native multi-frame animated GIF playback inside quest panels, synced cleanly over the network.
Native FTB Quests Component Blocks (```ftb / ```ftbq / ```ftbquests)
- Embed native FTB Quests rich-text lines directly inside Markdown descriptions without losing any vanilla FTB Quests features: Raw JSON
clickEvent(change_page,run_command,suggest_command,open_url,copy_to_clipboard),hoverEvent(show_text,show_item,show_entity),{image:...}(includingclick_action,width,height,align),{@pagebreak},&color codes, and multi-line formatted JSON arrays. - Directly reuses FTB Quests' native parser and widgets, maintaining full compatibility with vanilla interactions and third-party addons such as Quest Enhance.
```ftb
{"text":"[Open Next Quest]","color":"aqua","bold":true,"clickEvent":{"action":"change_page","value":"0123456789ABCDEF"},"hoverEvent":{"action":"show_text","contents":"Click to jump to the target quest"}}
{image:minecraft:textures/item/diamond.png width:24 height:24 align:center}
```Source Code: https://github.com/hp3081925122/Quest-Markdown
Showcase
External Markdown & LaTeX Math Overview
Render external .md files directly inside FTB Quests with headings, inline code pills, callouts, and offline JLaTeXMath inline & display equations.

LaTeX Matrices & Native Mermaid Flowcharts
Built-in offline rendering for LaTeX matrices and native Mermaid flowcharts with subgraphs, decision diamonds, and dashed loops.

Textures, Synced GIFs & Adaptive Tables
Display item icons, resource pack textures, multiplayer-synced local GIF animations, and auto-sized Markdown tables.

LaTeX Math in Vanilla FTB Descriptions
Write $...$ and $$...$$ directly in standard FTB Quests descriptions without external .md files, with automatic & color code inheritance.

FTB Quest Markdown
FTB Quest Markdown 是一款面向 FTB Quests 的附属模组,可将外部 Markdown 文档、离线 LaTeX 数学公式、Mermaid 流程图、GIF 动图、资源包贴图以及可视化公式助手直接带入任务详情页。
核心功能
外部 Markdown 文档渲染
- 在任意任务描述中写入
{quest_markdown:path/to/doc.md}即可直接展开渲染外部.md文档。 - 在 FTB Quests 任务编辑右键菜单中新增插入 Markdown 文档快捷入口。
- 支持多语言自动回退:优先匹配
<客户端语言>/<路径>(如zh_cn/guide.md),缺失时自动回退到docs/根目录文档。 - 原生支持独立服务端与联机同步:客户端自动向服务端拉取文档与本地图片/GIF 资源,并支持通过
/quest_markdown reload一键热重载。 - 完整支持 Markdown 排版:多级标题、粗体/斜体/删除线、引用块、有序/无序列表、任务清单、分隔线、行内代码胶囊、代码块、自适应列宽表格、可点击超链接,以及任务窗口推荐最小宽度(
min_width)自动适配。 - 支持加载系统平滑 TrueType 字体(正文、独立粗体与等宽代码字体),并可在客户端配置中自由切换字体模式。
离线 LaTeX 数学公式(Markdown 与原版任务描述双支持)
- 完全离线渲染
$...$行内公式与$$...$$块级公式,支持分式、根号、上下标、积分、求和、希腊字母、矩阵以及分段/方程组(cases)等常见语法。 - 不仅支持外部
.md文档,也支持 FTB 原生任务描述行,并自动继承&颜色代码。
可视化公式助手(∑)
- 在 FTB Quests 多行描述编辑器工具栏新增
∑公式助手按钮,内置实时渲染预览、常用模板按钮、可视化填参弹窗以及针对已有公式的可点击结构快改芯片。 - 在编辑模式下,支持直接在任务详情页右键或双击已渲染的原生公式,唤起公式助手进行二次编辑或插入新公式。
Mermaid 流程图
- 原生支持渲染
mermaid代码块流程图(兼容flowchart/graph、LR/TD/RL/BT方向、多种节点形状、实线/虚线/粗箭头、连线文字标签与subgraph子图分组)。
本地图片、资源包贴图与 GIF 动图
- 支持在 Markdown 中引用
docs/目录下的本地 PNG/JPG/GIF 文件(支持../相对路径),也支持直接按路径引用 Minecraft 资源包内贴图。 - 原生支持任务面板内多帧 GIF 动图流畅播放,并与服务端联机资源同步机制无缝衔接。
原生 FTB 任务书组件块嵌入(```ftb / ```ftbq / ```ftbquests)
- 在 Markdown 中无缝嵌入原版 FTB 任务书的全部富文本功能:完整保留 Raw JSON 全部
clickEvent(change_page跳转任务、run_command、suggest_command、open_url、copy_to_clipboard)、hoverEvent(show_text、show_item物品详情悬浮提示、show_entity)、带click_action/width/height/align的{image:...}、{@pagebreak}、&颜色代码与跨行格式化 JSON 数组。 - 直接复用原版 FTB Quests 解析器与原生控件,完整兼容原版交互及 Quest Enhance 等第三方附属。
```ftb
{"text":"[跳转至下一任务]","color":"aqua","bold":true,"clickEvent":{"action":"change_page","value":"0123456789ABCDEF"},"hoverEvent":{"action":"show_text","contents":"点击跳转到目标任务"}}
{image:minecraft:textures/item/diamond.png width:24 height:24 align:center}
```