addition of new dashboard
This commit is contained in:
1 parent
0622018d95
commit
bf59249ed7
161 files changed
+13170
-119
No files matched your search
@@ -0,0 +1,14 @@
|
||||
export function firstNonBlankLine(markdown) {
|
||||
if (typeof markdown !== 'string') return;
|
||||
|
||||
const lines = markdown.split(/\r?\n/);
|
||||
|
||||
for (const line of lines) {
|
||||
const trimmed = line.trim();
|
||||
if (trimmed) {
|
||||
return trimmed.replace(/^#+\s*/, '');
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
Reference in new issue
Block a user