Markdown Examples

Working Markdown Examples for Word Export

Inspect valid source for mixed reports, code, equations, and Mermaid diagrams. Copy only what you need and confirm advanced content in preview before export.

Overview Markdown example

Use this source as a starting point, then replace the sample content with your own verified material.

# 🚀 Project Status: AI Model Optimization

> **Note:** This document demonstrates the power of **AI2Word**.
> Notice how Tables, Math, Code, and Diagrams are rendered cleanly for professional reports.

## 1. Executive Summary
We have successfully reduced the inference latency by **45%** while maintaining accuracy. The new architecture uses **quantization-aware training**.

## 2. Performance Metrics (Table Support)
Comparison between the baseline model and the optimized version:

| Metric | Baseline (v1.0) | Optimized (v2.0) | Improvement |
| :--- | :--- | :--- | :--- |
| **Latency** | 120ms | **65ms** | ✅ -45.8% |
| **Accuracy** | 98.2% | 98.0% | ➖ -0.2% |
| **Model Size** | 500MB | 120MB | ✅ -76.0% |

## 3. Mathematical Foundation (Native LaTeX)
The loss function includes a regularization term to prevent overfitting.
(Double-click the formula in Word to edit it directly!)

$$
\mathcal{L}(\theta) = -\frac{1}{N} \sum_{i=1}^{N} \left[ y_i \log(\hat{y}_i) + (1-y_i) \log(1-\hat{y}_i) \right] + \lambda ||\theta||^2
$$

## 4. Implementation Details (Code Highlighting)
We implemented a custom layer for dynamic attention:

```python
import torch.nn as nn

class DynamicAttention(nn.Module)

Tables Markdown example

Use this source as a starting point, then replace the sample content with your own verified material.

# Structured Data Tables

Clean Markdown tables convert to bordered Word tables and multi-sheet Excel workbooks without manual column resizing.

## Q3 Feature Delivery Scorecard

| Feature Area | Owner | Alignment | Target Date | Status |
| :--- | :--- | :---: | :---: | ---: |
| Word Table Borders | Platform Team | Left / Center | Nov 18 | ✅ Shipped |
| OMML Math Parser | Core Engine | Numeric Right | Nov 24 | ✅ Shipped |
| Mermaid Vector Export | Graphics Pipeline | Center | Dec 02 | 🚧 In Review |
| Batch Cloud Sync | Storage API | Right | Dec 10 | 📋 Planned |

## Cost & Quota Comparison

| Plan Tier | Monthly Price | Cloud Documents | Priority Queue | Exports |
| :--- | :---: | :---: | :---: | :--- |
| Free Plan | $0 | 5 | Standard | 1 Guest Trial + 2/day Free |
| 24-Hour Pass | $4.90 | 5 | Priority | Unlimited (24h) |
| Pro Monthly | $14.90 | 100 | Priority | Unlimited |
| Team Annual | $39.90 / seat | 100 / seat | Priority | Unlimited |

> **Tip:** Click **Excel** to export each Markdown table above into its own worksheet tab, or **Word** to preserve column alignment and header shading.

Code Markdown example

Use this source as a starting point, then replace the sample content with your own verified material.

## Code Block

```ts
type User = { id: string; name: string };
const hello = (u: User) => 'Hello, ' + u.name + '!';
```

```bash
pnpm install
pnpm dev
```

Math Markdown example

Use this source as a starting point, then replace the sample content with your own verified material.

# Complex Math Equations
Here is the integral form of Maxwell's equations:
$$
\oint_{\partial \Sigma} \mathbf{E} \cdot \mathrm{d}\boldsymbol{\ell} = - \iint_{\Sigma} \frac{\partial \mathbf{B}}{\partial t} \cdot \mathrm{d}\mathbf{S}
$$

Here is a multi-line aligned derivation:
$$
\begin{aligned}
f(x) &= (x+a)(x+b) \\
     &= x^2 + (a+b)x + ab \\
     &\approx x^2 \quad \text{if } x \gg a,b
\end{aligned}
$$

Here is a matrix and a piecewise function:
$$
\mathbf{X} = \begin{bmatrix}
1 & x & x^2 \\
1 & y & y^2 \\
1 & z & z^2
\end{bmatrix}, \quad
f(n) = \begin{cases}
n/2 & \text{if } n \text{ is even} \\
3n+1 & \text{if } n \text{ is odd}
\end{cases}
$$
Note: These formulas are exported as Native Word Objects (OMML). You can double-click them in Word to edit numbers or symbols directly. No images, no fuzziness.

Mermaid Markdown example

Use this source as a starting point, then replace the sample content with your own verified material.

Supports 12 popular Mermaid diagram types, from basic flowcharts to technical architecture diagrams.

## 1. Flowchart
Ideal for decision trees, workflows, and branching logic.
```mermaid
graph TD
    Start[Start] --> Decision{Signed in?}
    Decision -- Yes --> Process[Open Workspace]
    Decision -- No --> End[Go to Login]

```

## 2. Sequence Diagram

Shows chronological interactions between participants, including `alt` blocks and dashed responses.

```mermaid
sequenceDiagram
    participant U as User
    participant S as Server
    U->>S: 1. Request data
    activate S
    S-->>U: 2. Return payload (JSON)
    deactivate S

```

## 3. C4 Architecture Diagram (C4 Context)

Built for software architects to model system boundaries and external actors cleanly.

```mermaid
C4Context
    Person(user, "User", "Retail banking customer")
    System(banking, "Core Banking", "Processes transactions")
    Rel(user, banking, "Checks balance")

```

## 4. Gantt Chart

Project timeline planning with automatic date scaling and task dependencies.

```mermaid
gantt
    title Project Delivery Plan
    dateFormat  YYYY-MM-DD
    section Core Features
    Requirements :active, a1, 2023-05-01, 3d
   

Continue with a focused workflow