# Amp Elixir

Amp transforms your Markdown into AMP-compliant html so it loads super-fast!

## Why?

Google is putting their clout behind the AMP (Accelerated Mobile Pages) Project to help speed up page load times on the Mobile Web:

This module lets you convert Markdown (`.md`) files to AMP-compliant `.html` so that you can serve them up to mobile clients much faster.

## What?

For many, reading on the mobile web is a slow, clunky and frustrating experience - but it doesn’t have to be that way. The Accelerated Mobile Pages (AMP) Project is an open source initiative that embodies the vision that publishers can create mobile optimized content once and have it load instantly everywhere.


The best place to understand how AMP works is on the official "How it Works" page:

## Documentation

Amp Elixir should support the same markdown as described in the [Earmark]( repository

For these limitations see:

### Api

+ `markdown` - (required) markdown string to be parsed
+ `options` - (required) map
  - headOverride - (optional) custom html head to use if you do not want to use one generated by ampl. Using this option will mean other options will have no effect
  - style - (optional) css string to style the output html
  - title - (optional) sets the title property in the page
  - canonicalUrl- (optional) sets the canonicalUrl of the page
  - extraHeadHTML- (optional) extra html to be inserted into the bottom of the head

## Background Reading

The AMP Spec:

## Questions?

If you have any questions please ask:

## Installation

If [available in Hex](, the package can be installed
by adding `amp` to your list of dependencies in `mix.exs`:

def deps do
  [{:amp, "~> 0.1.0"}]

Documentation can be generated with [ExDoc](
and published on [HexDocs]( Once published, the docs can
be found at [](