Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
makura-2025
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Raj Shah
makura-2025
Commits
3bd62f70
Commit
3bd62f70
authored
Aug 08, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the new toc id
parent
ba7c3a74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
style.js
assets/js/style.js
+5
-3
No files found.
assets/js/style.js
View file @
3bd62f70
...
@@ -593,13 +593,15 @@
...
@@ -593,13 +593,15 @@
function
sanitizeTitle
(
text
)
{
function
sanitizeTitle
(
text
)
{
return
text
return
text
.
toString
()
.
toString
()
.
trim
()
// Remove leading
and
trailing whitespace
.
trim
()
// Remove leading
/
trailing whitespace
.
toLowerCase
()
// Convert to lowercase
.
toLowerCase
()
// Convert to lowercase
.
replace
(
/
[^
a-z0-9
\s
-
]
/g
,
""
)
// Remove special characters
.
replace
(
/
\.
/g
,
"-"
)
// Replace dots with hyphens
.
replace
(
/
[^
a-z0-9
\s
-
]
/g
,
""
)
// Remove special characters (except hyphen and space)
.
replace
(
/
\s
+/g
,
"-"
)
// Replace spaces with hyphens
.
replace
(
/
\s
+/g
,
"-"
)
// Replace spaces with hyphens
.
replace
(
/-+/g
,
"-"
);
//
Remove multiple consecutiv
e hyphens
.
replace
(
/-+/g
,
"-"
);
//
Collapse multipl
e hyphens
}
}
$
(
function
()
{
$
(
function
()
{
$
(
".blog-detail-content h2, .blog-detail-content h3"
).
each
(
function
()
{
$
(
".blog-detail-content h2, .blog-detail-content h3"
).
each
(
function
()
{
var
text
=
$
(
this
).
text
();
var
text
=
$
(
this
).
text
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment