aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGia Thanh Vuong <thanhvg@gmail.com>2019-08-29 21:06:17 -0600
committerGia Thanh Vuong <thanhvg@gmail.com>2019-08-29 21:06:17 -0600
commit4a2b130527934e8900920c56ec4ed716e4167040 (patch)
tree8b80c01cdf3d8cdba52b726d6a89b5dc2963eee4
parent20b1b1728bbca07443bb252fff5b3ddc63882e30 (diff)
todo
-rw-r--r--TODOs.org12
1 files changed, 10 insertions, 2 deletions
diff --git a/TODOs.org b/TODOs.org
index 75785de..63d729f 100644
--- a/TODOs.org
+++ b/TODOs.org
@@ -62,7 +62,7 @@ just a private flag on running
* DONE remove * in text
find and replace raw htlm '>*' with '>-'
* add eww link
-* TODO long links are cut off
+* DONE long links are cut off
(get-text-property (point) 'shr-url)
(get-text-property (point) 'htmlize-link)
(text-properties-at (point))
@@ -89,9 +89,17 @@ with the org buffer, run through it find the text prop of htmlize-link
or hack shr insert link
-or a simple way chec in dom for a link and change it
+** or a simple way chec in dom for a link and change it
downside is speed, no we need to iterate and look for a tag and then mutate it, the push it back to the dom. Since the dom is a list
+
you need to map the whole dom
+
+it works but it seems a bit slow (can't confirm thsi) and long links looks ugly
+** got through the buffer look for each char
+- get its text properties 'shr-url and 'htmlize-link
+if they are the same then ok, if not assign htmlize-link to value of 'shr-url
+better use
+https://www.gnu.org/software/emacs/manual/html_node/elisp/Property-Search.html#Property-Search
* DONE first run on comment buffer won't have right width
also need to shadow shr-use-fonts to nil
* DONE display OP post ins ask and OP infor