问题
When you capture through org-protocol and a browser, either through the capture();
function or encodeURIComponent(window.getSelection());
, the text appears to be passed to the Emacs org-protocol server as plain text.
Is there a way to pull in some of the HTML heading/CSS style info to keep a minimal amount of formatting for readability? Most sites aren't anything close to plain text, so even selecting across a heading and a couple paragraphs comes out like garbage.
edit: I found pandoc, which will do HTML to org-mode conversions, but the results are overkill. Is there any way to get just the formatting from the selected objects, not a blind parse of HTML chunk?
来源:https://stackoverflow.com/questions/19168926/org-protocol-formatting-selected-text