aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/construct/definition.rs2
-rw-r--r--src/construct/heading_atx.rs2
-rw-r--r--src/construct/heading_setext.rs2
-rw-r--r--src/construct/paragraph.rs4
-rw-r--r--src/construct/thematic_break.rs2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/construct/definition.rs b/src/construct/definition.rs
index 48d1192..92d275c 100644
--- a/src/construct/definition.rs
+++ b/src/construct/definition.rs
@@ -135,7 +135,7 @@ pub fn start(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
/// ```markdown
/// |[a]: b "c"
/// ```
-pub fn before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
+fn before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
match code {
Code::Char('[') => tokenizer.go(
|t, c| {
diff --git a/src/construct/heading_atx.rs b/src/construct/heading_atx.rs
index 93c57f9..1e5fe3d 100644
--- a/src/construct/heading_atx.rs
+++ b/src/construct/heading_atx.rs
@@ -75,7 +75,7 @@ pub fn start(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
/// ```markdown
/// |## alpha
/// ```
-pub fn before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
+fn before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
if Code::Char('#') == code {
tokenizer.enter(TokenType::HeadingAtxSequence);
sequence_open(tokenizer, code, 0)
diff --git a/src/construct/heading_setext.rs b/src/construct/heading_setext.rs
index 91e494d..06ce481 100644
--- a/src/construct/heading_setext.rs
+++ b/src/construct/heading_setext.rs
@@ -124,7 +124,7 @@ pub fn start(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
/// |alpha
/// ==
/// ```
-pub fn before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
+fn before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
match code {
Code::None | Code::CarriageReturnLineFeed | Code::Char('\n' | '\r') => {
unreachable!("expected non-eol/eof");
diff --git a/src/construct/paragraph.rs b/src/construct/paragraph.rs
index af5d85d..13bd5aa 100644
--- a/src/construct/paragraph.rs
+++ b/src/construct/paragraph.rs
@@ -143,7 +143,7 @@ fn interrupt_start(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
/// alpha
/// |
/// ```
-pub fn interrupt_indent(_tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
+fn interrupt_indent(_tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
(State::Ok, Some(vec![code]))
}
@@ -153,7 +153,7 @@ pub fn interrupt_indent(_tokenizer: &mut Tokenizer, code: Code) -> StateFnResult
/// alpha
/// |<div>
/// ```
-pub fn interrupt_cont(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
+fn interrupt_cont(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
tokenizer.attempt_n(
vec![
Box::new(blank_line),
diff --git a/src/construct/thematic_break.rs b/src/construct/thematic_break.rs
index 3d24566..9978ee0 100644
--- a/src/construct/thematic_break.rs
+++ b/src/construct/thematic_break.rs
@@ -130,7 +130,7 @@ pub fn start(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
/// ```markdown
/// |***
/// ```
-pub fn before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
+fn before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
match code {
Code::Char(char) if char == '*' || char == '-' || char == '_' => at_break(
tokenizer,