File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
crates/mdbook-core/src/utils Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,7 @@ pub fn normalize_id(content: &str) -> String {
43
43
44
44
/// Generate an ID for use with anchors which is derived from a "normalised"
45
45
/// string.
46
- // This function should be made private when the deprecation expires.
47
- #[ deprecated( since = "0.4.16" , note = "use unique_id_from_content instead" ) ]
48
- pub fn id_from_content ( content : & str ) -> String {
46
+ fn id_from_content ( content : & str ) -> String {
49
47
let mut content = content. to_string ( ) ;
50
48
51
49
// Skip any tags or html-encoded stuff
@@ -67,10 +65,7 @@ pub fn id_from_content(content: &str) -> String {
67
65
/// Each ID returned will be unique, if the same `id_counter` is provided on
68
66
/// each call.
69
67
pub fn unique_id_from_content ( content : & str , id_counter : & mut HashMap < String , usize > ) -> String {
70
- let id = {
71
- #[ allow( deprecated) ]
72
- id_from_content ( content)
73
- } ;
68
+ let id = id_from_content ( content) ;
74
69
75
70
// If we have headers with the same normalized id, append an incrementing counter
76
71
let id_count = id_counter. entry ( id. clone ( ) ) . or_insert ( 0 ) ;
You can’t perform that action at this time.
0 commit comments