# Schema for blocks.toml # # This describes what properties blocks can have, as mentioned in docs/Blocks.md [block-name] # Whether this block is deprecated or not. # Deprecated blocks should be clearly marked as such, and # should not be actively recommended to users. # # If this is set, then the deprecation-message in the corresponding # language file should be populated. # # type: bool, optional deprecated = false # What aliases (if any) this block accepts, in addition to its name. # Case-insensitive. # # type: string[], optional aliases = ["a", "anchor"] # Whether to exclude the block's name from its list of aliases. # By default, the block's rule name is, by convention, one of its # block names when parsing. However this is not always true. # # type: bool, optional exclude-name = false # Whether this block accepts the star (*) flag. # # type: bool, optional accepts-star = false # Whether this block accepts the score (_) flag. # # type: bool, optional accepts-score = true # Whether this block accepts newline delimition for its sections. # # type: bool, optional accepts-newlines = true # What kind of head this block expects. # See the document "Blocks.md" for more information. # # type: string, enum # values: "none", "value", "map", "value+map" head = "map" # What kind of body this block expects, if any. # # type: string, enum # values: "none", "raw", "elements", "other" body = "elements" # Whether this block accepts safe HTML attributes as arguments. # These are then ported to the final HTML element in rendering, # with possible changes for safety or correctness. # # Only applies to blocks that have head = "map" or "value+map". # # type: bool, optional html-attributes = true # What kind of HTML output this block produces. # # This field is formatted a bit particularly: # # "none" # -> No output. # "html,$element[,$class]" # -> This produces a DOM element of the given type. For instance, "html,iframe" # If the third element is specified, then it ensures that this element has # the given class added. "html,div,test" means that '