Skip to content

Commit

Permalink
feat(markup): add support for content intelligence matching expressions
Browse files Browse the repository at this point in the history
fixes #278
  • Loading branch information
trieloff committed Apr 20, 2020
1 parent 3a35708 commit 16a0916
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/schemas/markupmapping.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,32 @@
"/authors/:name",
"/posts/(\\d\\d\\d\\d)/(\\d\\d)/:title"
]
},
{
"type": "string",
"title": "Content Intelligence Match Expression",
"description": "Use a [Content Intelligence](https://github.com/adobe/helix-pipeline/blob/master/README.md#infer-content-types-with-utilstypes) expression for selecting sections in MDAST that have the specified order of children.",
"examples": [
"^heading",
"paragraph$",
"heading image+",
"heading? image",
"heading paragraph* image",
"(paragraph|list)",
"^heading (image paragraph)+$"
]
}
]
},
"type": {
"type": "string",
"enum": ["html", "markdown", "url"],
"enum": ["html", "markdown", "url", "content"],
"default": "html",
"meta:enum": {
"html": "Match against the generated DOM tree",
"markdown": "Match against the source MDAST tree",
"url": "Match against the request URL"
"url": "Match against the request URL",
"content": "Use content intelligence matching for sections"
}
},
"wrap": {
Expand Down

0 comments on commit 16a0916

Please sign in to comment.