Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

NodeKind::Indent

Wire tag: indent — single-line [#N字下げ] indent marker.

Source examples

[#2字下げ]
[#3字下げ]もう一段下げる

Rendered HTML

<span class="aozora-indent" data-amount="2"></span>

CSS controls the actual padding (typically padding-inline-start: Nem).

Serialize output

Round-trips to [#N字下げ].

AST shape

pub struct Indent {
    pub amount: u8,
}

When emitted

Phase 3 matches the digraph plus a numeric prefix and emits a single inline marker. For paired indent regions ([#ここから2字下げ][#ここで字下げ終わり]), see Container.

Diagnostics

None on well-formed input.

  • Container — paired indent / dedent regions (ContainerKind::Indent).
  • AlignEnd — right-edge alignment counterpart.