Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 890 Bytes

File metadata and controls

27 lines (19 loc) · 890 Bytes

AMP to Markdown conversion with AMP Optimizer

AMP Optimizer supports converting Markdown to AMPHTML. A typical conversion flow would be:

README.md => HTML => AMP Optimizer => valid AMP

If markdown mode is enabled via markdown: true, AMP Optimizer will convert <img> tags into either amp-img or amp-anim tags. All other Markdown features are already supported by AMP. AMP Optimizer will try to resolve image dimensions from the actual files. Images larger than 320px will automatically get an intrinsic layout.

Here is an image declared in markdown syntax:

A random image.

You can also directly use AMP components:

Any missing extensions will be automatically imported.