aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-21 18:21:56 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-21 18:21:56 +0200
commita23cff0886f284f33622bce2bddf42b30d006438 (patch)
tree221e24098c1079b629ce4fc9a23146df4b6807db /src
parent59ebfca815fc482f624cd3cf1c40c78bd7640623 (diff)
downloadmarkdown-rs-a23cff0886f284f33622bce2bddf42b30d006438.tar.gz
markdown-rs-a23cff0886f284f33622bce2bddf42b30d006438.tar.bz2
markdown-rs-a23cff0886f284f33622bce2bddf42b30d006438.zip
Add docs on virtual space
Diffstat (limited to 'src')
-rw-r--r--src/constant.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/constant.rs b/src/constant.rs
index 6ba1638..90e66d4 100644
--- a/src/constant.rs
+++ b/src/constant.rs
@@ -211,10 +211,11 @@ pub const SAFE_PROTOCOL_SRC: [&str; 2] = ["http", "https"];
/// constructs in markdown, most notable the whitespace required to form
/// [code (indented)][code_indented].
///
-/// <!-- To do: link to somewhere that discusses virtual spaces. -->
-/// <!-- Ref: https://github.com/syntax-tree/mdast-util-to-markdown/issues/51 -->
+/// > 👉 **Note**: each [`Code::VirtualSpace`][vs] and `Code::Char('\t' | ' ')`
+/// > counts.
///
/// [code_indented]: crate::construct::code_indented
+/// [vs]: crate::tokenizer::Code::VirtualSpace
pub const TAB_SIZE: usize = 4;
/// The number of markers needed for a [thematic break][thematic_break] to form.