1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//! The content handler that the `cells` feature contributes to the
//! [`floats`](crate::stdlib::features::floats) feature: [`CellsContent`],
//! named `cells`, which admits exactly one table of cells as a float's
//! content.
//!
//! A float type declares the content handlers it admits
//! ([`FloatType::handlers`](crate::stdlib::features::floats::FloatType::handlers)).
//! The default `table` float type lists `cells` first, and lists the
//! feature's scoped package
//! [`ENVIRONMENT_PACKAGE`](super::ENVIRONMENT_PACKAGE) among the scoped
//! packages of its body, so that `\begin{cells}` can be written there. The
//! handler is contributed to the floats feature's service slot
//! [`CONTENT_SLOT`](crate::stdlib::features::floats::CONTENT_SLOT) as a peer
//! contribution, regardless of the switch
//! [`CellsConfig::global`](super::CellsConfig::global): a registry without
//! the `floats` feature drops the contribution with one Note, and still
//! builds.
use NodeRef;
use crateFlm;
use crateelement_of;
use crateFloatContentHandler;
use ENVIRONMENT;
/// The name of the feature's content handler, `cells`: a float type lists
/// this name among its content handlers to admit one table of cells.
pub const HANDLER: &str = "cells";
/// The content handler [`HANDLER`] (`cells`): it admits exactly one table of
/// cells, a node of [`ENVIRONMENT`] (`flm.cells.cells`), and refuses any
/// other content: two tables, text, a table beside a paragraph, or nothing
/// at all. Its refusal reads "exactly one table of cells", which the float's
/// rule reports as the end of the sentence "a ‘table’ must hold …". See the
/// [module documentation](self).
;