-
-
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 |
|---|---|---|---|---|
| abbreviations | no | yes | no | no |
| all_symbols_escapable | yes | no | no | yes |
| ascii_identifiers | no | no | yes | no |
| auto_identifiers | yes | no | yes | yes |
| autolink_bare_uris | no | no | yes | no |
| backtick_code_blocks | yes | yes | no | no |
| compact_definition_lists | no | no | no | no |
| definition_lists | yes | yes | no | yes |
| fenced_code_blocks | yes | yes | yes | no |
| footnotes | yes | yes | no | yes |
| grid_tables | yes | no | no | no |
| hard_line_breaks | no | no | yes | no |
| header_attributes | yes | yes | no | no |
| ignore_line_breaks | no | no | no | no |
| implicit_header_references | yes | no | no | yes |
| intraword_underscores | yes | yes | yes | yes |
| link_attributes | no | no | no | yes |
| lists_without_preceding_blankline | no | no | no | no |
| markdown_attribute | no | yes | no | yes |
| mmd_header_identifiers | no | no | no | yes |
| mmd_title_block | no | no | no | yes |
| multiline_tables | yes | no | no | no |
| pipe_tables | yes | yes | yes | yes |
| raw_html | yes | yes | yes | yes |
| raw_tex | yes | no | no | yes |
| shortcut_reference_links | yes | yes | yes | yes |
| simple_tables | yes | no | no | no |
| strikeout | yes | no | yes | no |
| table_caption | yes | no | no | no |
| tex_math_double_backslash | no | no | no | yes |
| tex_math_single_backslash | no | no | yes | no |
Notes:
- Each extension which is enabled by default can be disabled by it attaching the
-EXTENSIONNAMEto the format. - Each extension which is disabled by default can be enabled by it attaching the
+EXTENSIONNAMEto the format. - Pandoc also supports
markdown_strict. Here the only extension enabled by default israw_html.
(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)