mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
ui: tweak table of contents prefix
This commit is contained in:
@@ -20,8 +20,8 @@ function extractTitle(title: string): ITitle {
|
||||
const rest = maybePrefix ? title.replace(maybePrefix[0], "") : title
|
||||
|
||||
return {
|
||||
prefix: maybePrefix ? maybePrefix[0] : undefined,
|
||||
title: rest,
|
||||
prefix: maybePrefix ? `${maybePrefix[0]} ` : undefined,
|
||||
title: rest.trim(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user