Skip to content

Commit

Permalink
Make ul/ol valid types, refs the-grid/ed#300
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Nov 24, 2016
1 parent bff30a1 commit 0f0f121
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/contentblock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@
id: "bdcc6765-114a-4184-977d-b01d3132ef69"
type: "hr"
html: "<hr>"
-
_valid: true
_name: "valid-ul"
_data:
id: "bdcc6765-114a-4184-977d-b01d3132ef69"
type: "ul"
html: "<ul><li>Foo</li><li>Bar</li></ul>"
-
_valid: true
_name: "valid-ol"
_data:
id: "bdcc6765-114a-4184-977d-b01d3132ef69"
type: "ol"
html: "<ol><li>One</li><li>Two</li></ol>"
-
_valid: false
_name: 'text-h1-join-evolution-invalid-author'
Expand Down
14 changes: 14 additions & 0 deletions examples/list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,17 @@
type: "list"
html: "<ul><li>Foo</li><li>Bar</li></ul>"
items: 2
-
_valid: true
_name: "valid-ul"
_data:
id: "bdcc6765-114a-4184-977d-b01d3132ef69"
type: "ul"
html: "<ul><li>Foo</li><li>Bar</li></ul>"
-
_valid: true
_name: "valid-ol"
_data:
id: "bdcc6765-114a-4184-977d-b01d3132ef69"
type: "ol"
html: "<ol><li>One</li><li>Two</li></ol>"
2 changes: 2 additions & 0 deletions schemata/contentblock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ definitions:
- h6
- text
- list
- ul
- ol
- code
- image
- video
Expand Down
2 changes: 2 additions & 0 deletions schemata/list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ properties:
type: string
enum:
- list
- ul
- ol
html:
description: HTML content of the block
example: '<ul><li>Hello world<ul><li>Foo</li></ul></li><li>Foo bar</li></ul>'
Expand Down

0 comments on commit 0f0f121

Please sign in to comment.