All other raw HTML tags are treated as span-level tags and are not affected by this ![]() The following tags are always ignored, regardless of any markdown attribute: canvas, math, option, pre, Only inline syntax will be rendered, such as links, strong, emphasis, etc. The content of a span element is not parsed into block-level content. Of the element so long as it is one of the block or span tags. When the markdown attribute is set to "span", then the parser will force the span behavior on the contents ![]() Reserved for advanced users who understand the HTML specification and how browsers parse and render HTML. Explicitly setting markdown="block" should be Recommended to use the default behavior of markdown="1". Any inline syntax within those elements is processed as well.įorcing elements to be parsed as block elements when they are not by default could result in invalid HTML.įor example, one could force a element to be nested within another element. Paragraphs, headers, lists, blockquotes, etc. The content of a block element is parsed into block-level content. The element so long as it is one of the block or span tags. When the markdown attribute is set to "block", then the parser will force the block behavior on the contents of ![]() ![]() The following tags have the span behavior by default: address, dd, dt, h, legend, li, p, td, Iframe, main, map, menu, nav, noscript, object, ol, output, progress, section, table, The following tags have the block behavior by default: article, aside, blockquote, body, colgroup,ĭetails, div, dl, fieldset, figcaption, figure, footer, form, group, header, hgroup, hr, When the markdown attribute is set to "1", then the parser will use the default behavior for that specific tag. Whereas the "span" and "block" values assigned to the markdownĪttribute refer to the Markdown parser’s behavior. The expressions “block-level” and “span-level” as used in this document refer to an element’s designationĪccording to the HTML specification.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |