fix: Move references spacing directly below content (#1113)
* fix: Move references spacing directly below content * Child document -> Nested document
This commit is contained in:
@@ -52,6 +52,19 @@ export default class Document extends BaseModel {
|
||||
}
|
||||
}
|
||||
|
||||
@computed
|
||||
get isOnlyTitle(): boolean {
|
||||
const { title } = parseTitle(this.text);
|
||||
|
||||
// find and extract title
|
||||
const trimmedBody = this.text
|
||||
.trim()
|
||||
.replace(/^#/, '')
|
||||
.trim();
|
||||
|
||||
return unescape(trimmedBody) === title;
|
||||
}
|
||||
|
||||
@computed
|
||||
get modifiedSinceViewed(): boolean {
|
||||
return !!this.lastViewedAt && this.lastViewedAt < this.updatedAt;
|
||||
|
||||
Reference in New Issue
Block a user