diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-06-21 18:21:56 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-06-21 18:21:56 +0200 |
commit | a23cff0886f284f33622bce2bddf42b30d006438 (patch) | |
tree | 221e24098c1079b629ce4fc9a23146df4b6807db /src/constant.rs | |
parent | 59ebfca815fc482f624cd3cf1c40c78bd7640623 (diff) | |
download | markdown-rs-a23cff0886f284f33622bce2bddf42b30d006438.tar.gz markdown-rs-a23cff0886f284f33622bce2bddf42b30d006438.tar.bz2 markdown-rs-a23cff0886f284f33622bce2bddf42b30d006438.zip |
Add docs on virtual space
Diffstat (limited to '')
-rw-r--r-- | src/constant.rs | 5 |
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. |