Skip to content

Markdown editor: prepare text, formulas, tables, and images for export

The Markdown 编辑器 (Markdown editor) turns existing Markdown or copied document content into notes, handouts, and reports, then exports Word, PDF, and other formats. Compare source and preview while checking formulas, tables, and image references.

This walkthrough uses a fictional classroom exercise: solve 2x+3=11 and calculate the area of a triangle with base 6 and height 4. No real student data is involved. Chinese control labels below match the current interface.

First, identify which editor you opened

Entry pointContent and saving scope
实用工具 → Markdown 编辑器 (Utilities → Markdown editor)Standalone page. With an identified signed-in account, it automatically writes that account's draft on this device. When signed out, do not rely on recovery after leaving
The Markdown editor option in a parsing exportSends the selected result to the standalone editor; new edits are not automatically written back to the source task
编辑与转换 Markdown (Edit and convert Markdown) in a reader's page/paragraph controlsA separate copy of that fragment. Its notice says the original document stays unchanged; export needed files before closing
编辑解析结果 / 编辑译文 (Edit parsing result/Edit translation)Saves revisions of the original task; follow Review and edit results

A device-local draft is not a cloud document, cross-device synchronization, or a permanent backup. Do not assume it survives browser changes, cleared local data, or account changes. Export content you need before starting another document.

Step 1: open the editor and add content

  1. Open Markdown 编辑器 from 实用工具. If a local draft appears, check whether you intend to continue it.
  2. Click 源码 (Source) and paste your Markdown. If content came from a parsing result, check whether it includes the entire document, a selected page, or one paragraph.
  3. For practice, paste the example below without overwriting a draft you need.
  4. Select 对照 (Compare) to view source and rendering together. On narrow screens, switch between 源码 / 预览 (Source/Preview).
markdown
# Classroom exercise

Solve \(2x+3=11\), giving \(x=4\).

The triangle's area is:

\[
S=\frac{1}{2}\times6\times4=12
\]

| Item | Value |
| --- | --- |
| Base | 6 |
| Height | 4 |

The preview should show a heading, an inline formula, a displayed area formula, and a two-column table. Check the preview after each edit before adding more content.

Compare Markdown source with its rendered preview. (workflow diagram)

Compare Markdown source with its rendered preview. (workflow diagram). Open the image in a new tab to enlarge it.

Step 2: correct text and formulas

Edit text, headings, lists, and formulas in the source. If you change the equation's 11 to 15, also check its solution rather than leaving the old answer.

Use \( ... \) for inline formulas and \[ ... \] for displayed formulas. Open 公式说明 (Formula help) for the interface's guidance. Preserve complete delimiters, backslashes, and braces: \frac{1}{2} needs two pairs of braces, and x^2 means something different from x_2.

AI 补全公式 (AI formula completion) is enabled by default and checks LaTeX that lacks formula delimiters. It does not verify mathematical reasoning or solve the exercise for you. Its model may need to load on first use. Check the preview and notices after changing content; existing formulas and code blocks are preserved according to its rules. If a completion is wrong, use the notice's undo action or turn the switch off and fix it manually. 代码高亮 (Code highlighting) helps you read source; it does not establish mathematical correctness.

LaTeX math source: matrices, cases and aligned equations

Paste existing LaTeX math into 源码 (Source), then use 对照 (Compare) to check it. This workflow handles mathematics inside Markdown. Complete papers with \documentclass, references, multiple files or arbitrary packages still require a full LaTeX environment. Browser rendering and office-file compatibility are separate checks; see MathJax's official support scope.

The following three formulas come from our self-authored example. Pair the outer \[ and \] delimiters, and use matching environment names in begin and end.

markdown
\[
A=\begin{bmatrix}
1 & 2 \\
3 & 4
\end{bmatrix}
\]

\[
|x|=\begin{cases}
x, & x\ge 0 \\
-x, & x<0
\end{cases}
\]

\[
\begin{aligned}
f(x)&=(x+1)^2 \\
&=x^2+2x+1
\end{aligned}
\]
  • Matrix: & separates columns and \\ separates rows. Expect 1, 2 in the first row and 3, 4 in the second.
  • Cases: verify each expression against its condition: x for nonnegative values, −x for negative values.
  • Aligned equations: & marks the alignment position. Check both rows and the scope of each square.
  • Code examples: ordinary fenced code deliberately shows LaTeX literally. Correct the relevant fence and math delimiters when a body formula was put there by mistake; do not remove every code block.

Actual source and preview of the self-authored example, showing inline scripts, a fraction, a sum and a matrix.

Download matching source and actual Word files

On 2026-10-10, we exported two Word files through the actual interface and opened both in Microsoft Word for Mac 16.94. Each contains six native equation objects. Their mathematical content is identical; the literal fraction in the code block and the end marker are also preserved.

In the first export, two adjacent display formulas that appeared separately in the browser shared one line in Word. We added only an explanatory prose paragraph between them, then exported again through the same interface. In the second file the formulas are separate. Both original input/output pairs are available to inspect this specific difference.

The second actual DOCX open in Word: the fraction and sum are separate, with the matrix, piecewise function and aligned equations visible.

Download the second source MD and its actual Word DOCX, or the two input/output pairs and check notes (ZIP). The first source MD and actual DOCX can also be compared separately. See the LaTeX and Markdown formula-to-Word guide for more source examples.

We checked both matrix rows, the piecewise conditions and both aligned rows in native Word. Selecting the matrix in an unchanged copy exposed Word's Equation tools. We did not manually edit a formula, test WPS or MathType, or establish compatibility with other Word versions or arbitrary macros. The original DOCX downloads are unchanged; check your own files in the target application before delivery.

Export one formula as SVG and check blank PNG downloads

To use a LaTeX formula as an illustration, click 复制或导出公式 (Copy or export formula) beside that formula in the preview, then choose SVG or PNG. This toolbar acts on the selected formula; the top 导出文件 (Export file) button handles the whole document. SVG is a vector picture, not a Word math object. Keep the source if you need to change its mathematics later.

  1. Back up any draft you need, then add your math source. Wrap a displayed formula in \[ ... \] and select 对照 (Compare).
  2. Check the radical, denominator, signs, subscripts, superscripts, and each matrix row and column. AI 补全公式 (AI formula completion) was off in the check below.
  3. Open the selected formula's 复制或导出公式 → SVG, then reopen the downloaded file.
  4. After inserting it into your document, slides, or website, check its size, color, and edges in that application. This is separate from checking the editor preview.

Actual formula toolbar in the current editor: LaTeX, sign in to copy Word, WPS file, PNG, and SVG.

On October 13, 2026, we downloaded each of two self-authored formulas as PNG and SVG in an embedded Chromium browser, using a guest temporary draft. Both SVG files display the formulas. Both PNG files are completely transparent, with no visible formula. This observation covers only these two formulas and this browser environment; this iteration did not fix PNG export or verify other browsers.

ExampleContent checked in SVGNative PNG from the same operation
Quadratic formula−b, ±, b²−4ac inside the radical, denominator 2a, and condition a≠0832 × 150; every pixel fully transparent
Matrix and transposeA has rows [1, −2], [3, 4]; its transpose has rows [1, 3], [−2, 4]950 × 154; every pixel fully transparent

Local rendering of the two unchanged native SVG files, showing the quadratic formula and matrix transpose. This labeled preview with a light background is not a native product PNG.

Download the source MD, native quadratic SVG, native matrix SVG, or complete check bundle ZIP. The locally assembled ZIP preserves the unchanged SVG files, the two original blank PNG files, source, screenshot, and notes. The image above is a local SVG display preview. These files come from a separate operation from the six-formula Word check above.

If a PNG download looks blank, reopen it against light and dark backgrounds to distinguish text color from missing content. If no formula appears, keep the source and file and use a checked SVG instead. If you convert SVG to PNG in another application, save it separately and check it again; that does not establish successful native PNG export in this test. A transparent background can be useful, but a completely transparent image has no visible formula.

The Word toolbar option read 登录后复制 Word (Sign in to copy Word). Guest Word clipboard transfer was not tested. For editable math, use the corresponding Word export workflow and check the formula in the target application; image sharpness and a download-complete notice do not establish editability.

Step 3: prepare tables

For a simple table, use the source toolbar's 表格 (Table) button to choose rows/columns and insert the markup. Edit it while preserving the header separator and a consistent column count. Changing the height from 4 to 5 also requires a separate check of the area formula. The rendered preview is not a table editor in which you can click cells to change them.

Complex tables copied from parsing results may use HTML <table> markup, which can represent merged cells. Do not casually remove rowspan, colspan, or table tags. If you prefer clicking cells and adding or removing rows/columns, use the visual table controls in the parsing/translation result editor before exporting or transferring the content to Markdown.

Markdown export offers HTML 表格 (HTML tables) and Markdown 表格 (Markdown tables). HTML preserves merged cells and complex structure, but some Markdown applications have limited editing or formula rendering inside HTML tables. Markdown tables suit common note editors; merged cells are expanded, content stays in the upper-left cell, and complex styling is simplified. Check the chosen output in your target application.

Step 4: resolve and check images

Reference an existing image in the source, for example:

markdown
![Triangle diagram](images/triangle.png)

Pasting the reference does not supply the image file. When images need to be attached or 检查并替换导出图片 (Check and replace export images) appears:

  1. Click 选择原图片 (Select original images) and choose matching files, or use 选择图片文件夹 (Select image folder) to resolve several references.
  2. For each unresolved or unreadable image, click its 选择原图替换 (Choose an original image to replace it) action.
  3. Check the preview, especially duplicate filenames, labels inside diagrams, and images inside tables.
  4. Resolve the remaining errors before exporting. Retain image assets with a Markdown file you plan to keep locally.

The picker accepts supported types such as PNG, JPEG, GIF, WebP, and BMP. Remote or embedded images that fail to load can also be replaced individually; other text and images are retained. A preview image's 变高清并替换 (Enhance and replace) action changes the current Markdown. Follow its own access and points notices; it does not automatically update the source task.

Resolve image references and check the preview; retain both text and image files. (workflow diagram)

Resolve image references and check the preview; retain both text and image files. (workflow diagram). Open the image in a new tab to enlarge it.

Step 5: export and check the resulting file

  1. Click 导出文件 (Export file) to open 导出编辑内容 (Export edited content).
  2. Select a format and read its description and membership badges.
  3. Resolve missing images through the dialog's available controls. For Markdown, also choose the table mode.
  4. Click 导出 (Export) for the selected format. If it requires sign-in, the button says 登录后导出 (Sign in and export); follow the prompt.
  5. Reopen downloaded HTML and Markdown files. PDF additionally requires saving through the browser print dialog. Inspect heading levels, formulas, tables, and every illustration.
FormatPurpose and sign-in condition
MarkdownPreserves text and formula source for further editing; no sign-in needed for export; keep the image assets too
HTMLBrowser reading; no sign-in needed for export
PDFReading, printing, and sharing; no sign-in needed; save the PDF through the browser print flow
WordDOCX with native editable equations; sign-in required
WPSDOCX for WPS equation editing; sign-in required
Word MathTypeDOCX for a MathType workflow; sign-in required
EduediterWSD for further text and formula editing; sign-in required; read the font notice

Follow current format cards and prompts for additional access requirements. Sign-in does not imply every format is free. Export a Markdown backup before starting sign-in or leaving the page. If a notice says the content and format were restored after sign-in, check them before continuing; do not assume every entry point has identical recovery behavior.

Word: check directory targets and footnote objects separately

On 2026-10-13, two self-authored lessons were merged and exported as three actual Word files from this editor. The raw merged MD, empty anchors before headings, and IDs on the headings produced different directory results. All three untouched DOCX files retain two native tables and two Office Math objects.

Input variantMatching directory targets in the previewMatching directory bookmarks in DOCX
Original merged MD0 / 60 / 6
Empty a anchors before headings, with links matching the preview prefix6 / 60 / 6
Unique IDs on the h1 / h2 headings, with links matching the preview prefix6 / 66 / 6

Actual editor source and preview for the two lessons; each heading-anchor variant was exported and checked separately.

One pair of headings and links from the final input is:

markdown
- [面积课笔记](#user-content-lesson-area)
  - [本课目标](#user-content-area-goal)

<h1 id="lesson-area">面积课笔记</h1>

<h2 id="area-goal">本课目标</h2>

The sample headings are Chinese. user-content- is the target prefix generated by the observed Doc2X editor; it is not a universal Markdown rule. Putting the unique IDs on the headings produced matching bookmarks for all six directory links in the actual DOCX. This does not establish support for every HTML anchor or converter. Compare the original merged MD and original DOCX with the reviewed MD and its actual DOCX.

The directory change did not fix the footnotes. None of the three DOCX files contains native Word footnote references or footnote body objects. The two superscript links have an end-of-document target, but the note is an ordinary paragraph. Both return-to-body links lack matching bookmarks. There is no automatic page-number contents field either.

Actual browser preview of the end-of-document note and its two return links; DOCX objects and return targets were checked separately.

The complete proof bundle contains the two inputs, merged source, three native DOCX files, two reviewed MD files and checks, including the unsuccessful empty-anchor attempt. Directory clicking, footnote editing and long-document pagination were not tested in desktop Word/WPS. Verify each requirement in your destination app; create and check native footnotes or automatic contents there when the final document requires them.

PDF: finish saving and check pagination

After selecting PDF and exporting, choose Save as PDF or the system's PDF save option in the browser print dialog. Check paper size, orientation, margins, scale, and page range, then save to a chosen location. Closing or canceling the print dialog does not mean a file was saved. Locate the resulting file and reopen it.

The editor's continuous preview has no paper boundaries. Check every saved page for table headers, first and last rows, wide code blocks, formula subscripts and superscripts, captions, and the final paragraph. Adjust the original MD or print settings when needed; a correct web preview does not verify every PDF page break. If an embedded browser has no usable save interface, continue in a regular desktop browser. See Chrome's official printing instructions for browser controls.

One Markdown Source: an Actually Saved Two-Page PDF

On 2026-10-10, we placed a self-authored Chinese exercise in the editor, selected PDF export, then chose Save as PDF → Save in desktop Chrome. We located the saved file and reviewed both pages of the PDF linked below.

The actual Chrome print dialog for this example, showing Save as PDF, two pages, and the Save button.

Settings in this example: all pages, one page per sheet, default margins, browser headers/footers off, and background graphics off. The output is approximately A4. Other browsers, fonts, and print settings can change pagination or wrapping; check your own preview and saved file.

Page 1 rendered from the saved PDF, showing the Chinese title, two area formulas, a short table, four code lines, and record 01 of the longer table.

This image is rendered directly from page 1 of the actual PDF; the download also includes page 2. The self-authored test content contains no customer information.

  • Formulas and text: both area expressions are visible, with base 6, height 4, and area 12. Check the fraction, multiplication signs, squared unit, and meaning against the source.
  • Table across pages: record 01 is on page 1; records 02–24 are on page 2, with a repeated heading in this example. The final area is 48. Tables are compact and borderless.
  • Code and ending: all four code lines and the DOC2X-MD-PDF-END marker are present. The marker wraps on page 2, and spacing between code lines differs from the Markdown source.

Download the same Markdown source, the actual two-page PDF, or the MD, PDF, and review-notes bundle. The illustrated Markdown-to-PDF guide also shows both pages.

This sample has no images, so it does not verify image embedding. Visually complete formulas do not guarantee complete copied mathematical text or editable Word equations. Keep the original MD and review your own file before sharing it.

HTML: check the download and its target platform

Selecting HTML downloads a reading file that you can reopen in a browser. Keep the input MD for further edits: visible mathematical graphics in HTML are not native Word equations and do not replace the original mathematical source.

Attach local images with 选择原图片 (Select original images) or the individual replacement control before exporting, then check each image and caption in the result. One verified self-authored PNG example embeds exactly the original image bytes in the actual HTML output; this does not verify every remote URL or image format. See the Markdown missing-image guide for an actual before-and-after example.

A CMS, email editor, or another website may filter styles, SVG, or embedded images, so preview again in the destination. Downloading HTML does not create a public URL; publishing requires the destination website's normal publishing process.

If a table is wider than a phone screen, see HTML mobile-reading checks: distinguish document overflow from scrolling inside a table region, then inspect the final column and equations. That test uses a separate PDF export and a local reading copy; it does not mean the Markdown editor's native output already uses those styles.

Close a fragment editor or recover a device-local draft

The reader's 编辑与转换 Markdown dialog explicitly says to edit and export here while leaving the original document unchanged. Export first, then click 返回文档 (Return to document). If 离开当前编辑? (Leave this edit?) appears, choose 继续编辑 (Continue editing) to return. 放弃本次修改 (Discard these changes) abandons the fragment edits you have not preserved. The fragment does not become a new parsing or translation task version.

A paragraph conversion edits a separate copy; export needed files before closing. (workflow diagram)

A paragraph conversion edits a separate copy; export needed files before closing. (workflow diagram). Open the image in a new tab to enlarge it.

The standalone page writes a device-local draft when a signed-in account owns it. If another draft is offered, preserve the current file before using 切换草稿 (Switch draft). For a draft loading error, click 重新载入草稿 (Reload draft), rather than replacing existing work with blank content. If the draft cannot be saved on this device, export a file immediately.

ProblemWhat to do
A formula appears as raw commandsCheck delimiters, braces, and backslashes; read Formula help, correct the source, and inspect the preview
Preview failsSource remains available; click 重新渲染 (Render again), and export a Markdown backup if needed
Table columns are misalignedCheck the separator row, column counts, and pipe characters inside cells; preserve HTML for complex tables
Images are missing in preview or exportAttach originals or replace individual images; verify that remote images are still accessible
Export is unavailableCheck that content is nonempty and resolve in-progress exports, image errors, or sign-in notices
The original result is unchanged after returningFragments and standalone Markdown do not automatically write back; use Edit parsing result/Edit translation for task revisions

See Export formats and settings for Word, WPS, and equation compatibility. For question/answer matching and outputs organized by question, use Organize exam questions.