File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
helper-scripts/influxdb3-plugins Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,22 @@ function removeEmojiMetadata(content) {
3434 return content . replace ( pattern , '' ) ;
3535}
3636
37+ /**
38+ * Clean up title formatting.
39+ */
40+ function cleanTitle ( content ) {
41+ // Remove duplicate # from titles (e.g., "# # Title" -> "# Title")
42+ content = content . replace ( / ^ # \s + # \s + ( .+ ) $ / m, '# $1' ) ;
43+ return content ;
44+ }
45+
3746/**
3847 * Convert relative links to GitHub URLs.
3948 */
4049function convertRelativeLinks ( content , pluginName ) {
4150 const baseUrl = `https://github.com/influxdata/influxdb3_plugins/blob/master/influxdata/${ pluginName } /` ;
42- const rootUrl = 'https://github.com/influxdata/influxdb3_plugins/blob/master/' ;
51+ const rootUrl =
52+ 'https://github.com/influxdata/influxdb3_plugins/blob/master/' ;
4353
4454 // Convert relative README links (../../README.md, ../README.md, etc.)
4555 content = content . replace (
You can’t perform that action at this time.
0 commit comments