Skip to content

Commit e956802

Browse files
committed
Rename clickable to preprocessor
1 parent 060314a commit e956802

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/parser/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
use crate::utils::NotationMatching;
66

7-
mod clickable;
7+
mod preprocessor;
88

99
/// The enum used to represent the distinct _raw_ values of a comment
1010
#[derive(Debug, Clone)]
@@ -20,7 +20,7 @@ pub enum Value {
2020
}
2121

2222
fn parse_single_line(line: &str) -> Value {
23-
let line = clickable::make_clickable(line);
23+
let line = preprocessor::preprocess_line(line);
2424
if let Some(notation) = line.contains_any_notation() {
2525
let split = line.split_whitespace().collect::<Vec<&str>>();
2626
Value::Notation(notation, split[1..].to_vec().join(" "))

src/parser/clickable.rs renamed to src/parser/preprocessor.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
use crate::utils::NotationMatching;
22

3-
pub fn make_clickable(input: &str) -> String {
4-
render_code(make_refs_clickable(make_links_clickable(input).as_str()).as_str())
3+
pub fn preprocess_line(input: &str) -> String {
4+
render_code(
5+
make_refs_clickable(
6+
make_links_clickable(input).as_str()
7+
).as_str()
8+
)
59
}
610

711
fn make_links_clickable(input: &str) -> String {

0 commit comments

Comments
 (0)