The Lambda Lab
/
projects
/
elpher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9a19a47
)
Brings gemini bullet-deteciton into line with spec update.
author
Tim Vaughan
<plugd@thelambdalab.xyz>
Mon, 1 Jun 2020 15:08:46 +0000
(17:08 +0200)
committer
Tim Vaughan
<plugd@thelambdalab.xyz>
Mon, 1 Jun 2020 15:08:46 +0000
(17:08 +0200)
elpher.el
patch
|
blob
|
history
diff --git
a/elpher.el
b/elpher.el
index
f2ea987
..
3c8db4a
100644
(file)
--- a/
elpher.el
+++ b/
elpher.el
@@
-1151,11
+1151,8
@@
by HEADER-LINE."
This function uses Emacs' auto-fill to wrap text sensibly to a maximum
width defined by elpher-gemini-max-fill-width."
(insert (elpher-process-text-for-display text-line))
This function uses Emacs' auto-fill to wrap text sensibly to a maximum
width defined by elpher-gemini-max-fill-width."
(insert (elpher-process-text-for-display text-line))
- (let* ((prefix-end-idx (string-match "[^ \t*]" text-line))
- (fill-prefix (if prefix-end-idx
- (let ((raw-prefix (substring text-line 0 prefix-end-idx)))
- (replace-regexp-in-string "\*" " " raw-prefix))
- nil)))
+ (let* ((prefix-end-idx (string-match "^[ \t]*\\(\*+[ \t]\\)?" text-line))
+ (fill-prefix (replace-regexp-in-string "\*" " " (match-string 0 text-line))))
(newline)))
(defun elpher-render-gemini-map (data _parameters)
(newline)))
(defun elpher-render-gemini-map (data _parameters)