summaryrefslogtreecommitdiffstatshomepage
path: root/nroam-backlinks.el
diff options
context:
space:
mode:
Diffstat (limited to 'nroam-backlinks.el')
-rw-r--r--nroam-backlinks.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/nroam-backlinks.el b/nroam-backlinks.el
index ff948fe..3d1cb3f 100644
--- a/nroam-backlinks.el
+++ b/nroam-backlinks.el
@@ -56,19 +56,19 @@
(defun nroam-backlinks--insert-heading (count)
"Insert the heading for the backlinks section with a COUNT."
- (insert (format "* %s %s :noexport:\n"
- (if (= count 0) "No" count)
- (nroam--pluralize count "linked reference"))))
+ (let ((title (format "%s %s"
+ (if (= count 0) "No" count)
+ (nroam--pluralize count "linked reference"))))
+ (nroam--insert-heading 2 title)))
(defun nroam-backlinks--insert-group (group)
"Insert all backlinks in GROUP."
(let ((file (car group))
- (backlinks (cdr group)))
- (insert (format "** %s\n"
- (org-roam-format-link
- file
- (org-roam-db--get-title file)
- "file")))
+ (backlinks (cdr group))
+ (title (org-roam-format-link file
+ (org-roam-db--get-title file)
+ "file")))
+ (nroam--insert-heading 3 title)
(nroam--do-separated-by-newlines #'nroam-backlinks--insert-backlink backlinks)))
(defun nroam-backlinks--insert-backlink (backlink)