Kramdown tez, sof Ruby Markdown-superset konvertori


Download 272.25 Kb.
bet8/10
Sana16.06.2023
Hajmi272.25 Kb.
#1506125
1   2   3   4   5   6   7   8   9   10
Bog'liq
Sintaksis Kramdown

HTML Spans

HTML tags cannot only be used on the block-level but also on the span-level. Span-level HTML tags can only be used inside one block-level element, it is not possible to use a start tag in one block level element and the end tag in another. Note that only correct XHTML is supported! This means that you have to use, for example, /> instead of
(although kramdown tries to fix such errors if possible).


By default, kramdown parses kramdown syntax inside span HTML tags. However, this behaviour can be configured with the parse_span_html option. If this is set to true, then syntax parsing in HTML spans is

https://kramdown.gettalong.org/syntax.html 22/29
07.05.2023, 19:42 Sintaksis | Kramdown
enabled, if it is set to false, parsing is disabled. It is also possible to enable/disable syntax parsing on a tag per tag basis using the markdown attribute:


If an HTML tag has an attribute markdown="0", then no parsing (except parsing of HTML span tags) is done inside that HTML tag.


If an HTML tag has an attribute markdown="1", then the content of the tag is parsed as span level elements.


If an HTML tag has an attribute markdown="block", then a warning is issued because HTML spans cannot contain block-level elements and the attribute is ignored.


If an HTML tag has an attribute markdown="span", then the content of the tag is parsed as span level elements.


The content of a span-level HTML tag is normally parsed as span-level elements. Note, however, that some tags like
Download 272.25 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling