mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
created history.ts
- fixed imports - added HistoryObject type - made parseNoteInfo in note.ts static Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
8e76c764e3
commit
a7aaded6dd
2 changed files with 68 additions and 60 deletions
|
@ -652,7 +652,7 @@ export class Note extends Model<Note> {
|
|||
return operations
|
||||
}
|
||||
|
||||
parseNoteInfo (body): { title: string; tags: string[] } {
|
||||
static parseNoteInfo (body): { title: string; tags: string[] } {
|
||||
const parsed = Note.extractMeta(body)
|
||||
const $ = cheerio.load(md.render(parsed.markdown))
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue