-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Tabular overview: Pandoc's supported Markdown dialects and extensions enabled by default
| Extension | markdown (Pandoc) | markdown_phpextra | markdown_github | markdown_mmd | markdown_strict |
|---|---|---|---|---|---|
| abbreviations | no | yes | no | no | no |
| all_symbols_escapable | yes | no | no | yes | no |
| ascii_identifiers | no | no | yes | no | no |
| auto_identifiers | yes | no | yes | yes | no |
| autolink_bare_uris | no | no | yes | no | no |
| backtick_code_blocks | yes | no | yes | no | no |
| blank_before_blockquote | yes! | no | no | no | no |
| blank_before_header | yes! | no | no | no | no |
| citations | yes | no | no | no | no |
| compact_definition_lists | no | no | no | no | no |
| definition_lists | yes | yes | no | yes | no |
| epub_html_exts (LOOKUP!) | yes | no | no | no | no |
| escaped_line_breaks | yes | no | no | no | no |
| example_lists | yes | no | no | no | no |
| fancy_lists | yes | no | no | no | no |
| fenced_code_attributes | yes | no | no | no | no |
| fenced_code_blocks | yes | yes | yes | no | no |
| footnotes | yes | yes | no | yes | no |
| grid_tables | yes | no | no | no | no |
| hard_line_breaks | no | no | yes | no | no |
| header_attributes | yes | yes | no | no | no |
| ignore_line_breaks | no | no | no | no | no |
| implicit_figures | yes | no | no | no | no |
| implicit_header_references | yes | no | no | yes | no |
| inline_code_attributes | yes | no | no | no | no |
| inline_notes | yes | no | no | no | no |
| intraword_underscores | yes | yes | yes | yes | no |
| latex_macros | yes | no | no | no | no |
| line_blocks | yes | no | no | no | no |
| link_attributes | no | no | no | yes | no |
| lists_without_preceding_blankline | no | no | yes | no | no |
| literate_haskell / lhs | yes | no | no | no | no |
| markdown_attribute | no | yes | no | yes | no |
| mmd_header_identifiers | no | no | no | yes | no |
| mmd_title_block | no | no | no | yes | no |
| multiline_tables | yes | no | no | no | no |
| native_divs | yes | no | no | no | no |
| native_spans | yes | no | no | no | no |
| pandoc_title_block | yes | no | no | no | no |
| pipe_tables | yes | yes | yes | yes | no |
| raw_html | yes | yes | yes | yes | yes |
| raw_tex | yes | no | no | yes | no |
| shortcut_reference_links | yes | yes | yes | no | yes |
| simple_tables | yes | no | no | no | no |
| startnum | yes | no | no | no | no |
| strikeout | yes | no | yes | no | no |
| table_caption | yes | no | no | no | no |
| tex_math_dollars | yes | no | no | no | no |
| tex_math_double_backslash | no | no | no | yes | no |
| tex_math_single_backslash | no | no | yes | no | no |
| yaml_metadata_block | yes | no | no | no | no |
Notes:
- Each extension which is enabled by default can be disabled by attaching the
-EXTENSIONNAMEto the markdown format specifier. - Each extension which is disabled by default can be enabled by attaching the
+EXTENSIONNAMEto the markdown format specifier. - Pandoc also supports
markdown_strict. Here the only extension enabled by default israw_html.
Examples:
- Use
-t markdown_mmd-pipe_tables+grid_tablesif you want to generate Markdown withgrid_tables. - Another way for same purpose: Use
-t markdown-multiline_tables-simple_tables-pipe_tablesif you want to generate Markdown withgrid_tables. - There are more ways…
(Table compiled by evaluating the most recent Pandoc man page for v1.15.0.6)
""" XXX DEX PPT Generator - 主入口文件 生成深色科技风格的XXX DEX产品演示PPT """
from fastapi import FastAPI, File, UploadFile, HTTPException from fastapi.responses import FileResponse from fastapi.middleware.cors import CORSMiddleware from src.ppt_generator import XXXDEXPPTGenerator import uvicorn import os import tempfile
app = FastAPI( title="XXX DEX PPT Generator", description="生成XXX DEX产品演示PPT的自动化工具", version="1.0.0" )
app.add_middleware( CORSMiddleware, allow_origins=[""], allow_credentials=True, allow_methods=[""], allow_headers=["*"], )
@app.post("/generate-ppt") async def generate_ppt(): """生成PPTX文件并返回下载链接""" try: generator = XXXDEXPPTGenerator()
# 创建临时文件
with tempfile.NamedTemporaryFile(suffix='.pptx', delete=False) as tmp_file:
tmp_path = tmp_file.name
# 生成PPT
generator.create_presentation(tmp_path)
return FileResponse(
tmp_path,
media_type="application/vnd.openxmlformats-officedocument.presentationml.presentation",
filename="XXX-DEX-产品演示.pptx"
)
except Exception as e:
raise HTTPException(status_code=500, detail=str(e))
@app.get("/health") async def health_check(): """健康检查接口""" return {"status": "healthy", "service": "XXX DEX PPT Generator"}
if name == "main": uvicorn.run(app, host="0.0.0.0", port=8000)