File tree Expand file tree Collapse file tree
crates/mdbook-core/src/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,9 +43,7 @@ pub fn normalize_id(content: &str) -> String {
4343
4444/// Generate an ID for use with anchors which is derived from a "normalised"
4545/// 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 {
4947 let mut content = content. to_string ( ) ;
5048
5149 // Skip any tags or html-encoded stuff
@@ -67,10 +65,7 @@ pub fn id_from_content(content: &str) -> String {
6765/// Each ID returned will be unique, if the same `id_counter` is provided on
6866/// each call.
6967pub 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) ;
7469
7570 // If we have headers with the same normalized id, append an incrementing counter
7671 let id_count = id_counter. entry ( id. clone ( ) ) . or_insert ( 0 ) ;
You can’t perform that action at this time.
0 commit comments