Skip to content

Commit

Permalink
Better description of markup attributes in MOBILEDOC.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic committed Apr 14, 2016
1 parent e346abd commit f04d2e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MOBILEDOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ The wrapper signature:

**Markup definition signature**

Markups have a tagName, and optionally an array of `attributeName, attributeValue]` pairs
Markups have a tagName and an optional array of attributes. Not all markups can have attributes, but for those that do the attributes array is a *single* array of all the attribute names and values, one after another. E.g., `["a", ["href", "http://bustle.com", "target", "_blank"]`.

```
{
version: "0.3.0",
markups: [
[tagName, optionalAttributes], ──── Markup
['em'], ──── Example simple markup with no attributes
['a', ['href', 'http://google.com']], ──── Example markup with attributes
[tagName, optionalAttributesArray], ──── Markup
["em"], ──── Example simple markup with no attributes
["a", ["href", "http://google.com", "target", "_blank"]], ──── Example markup with 2 attributes ("href" and "target")
]
}
```
Expand Down

0 comments on commit f04d2e6

Please sign in to comment.