File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use crate :: utils:: NotationMatching ;
6
6
7
- mod clickable ;
7
+ mod preprocessor ;
8
8
9
9
/// The enum used to represent the distinct _raw_ values of a comment
10
10
#[ derive( Debug , Clone ) ]
@@ -20,7 +20,7 @@ pub enum Value {
20
20
}
21
21
22
22
fn parse_single_line ( line : & str ) -> Value {
23
- let line = clickable :: make_clickable ( line) ;
23
+ let line = preprocessor :: preprocess_line ( line) ;
24
24
if let Some ( notation) = line. contains_any_notation ( ) {
25
25
let split = line. split_whitespace ( ) . collect :: < Vec < & str > > ( ) ;
26
26
Value :: Notation ( notation, split[ 1 ..] . to_vec ( ) . join ( " " ) )
Original file line number Diff line number Diff line change 1
1
use crate :: utils:: NotationMatching ;
2
2
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
+ )
5
9
}
6
10
7
11
fn make_links_clickable ( input : & str ) -> String {
You can’t perform that action at this time.
0 commit comments