emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: The way tags are exported in HTML (without colons!) --


From: Christian Moe
Subject: Re: [Orgmode] Re: The way tags are exported in HTML (without colons!) -- no workaround for searches!
Date: Fri, 04 Feb 2011 21:56:56 +0100
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

This bookmarklet finds an Org tags in exported HTML in Firefox, at least (just a proof of concept). To try it just copy-paste the whole thing into the address field.

javascript:
t=window.prompt("Tag?", "");
e=document.getElementsByClassName(t);
for(i=0;i<e.length;i++)
   {e[i].scrollIntoView(true);
    if(! window.confirm("Next?"))
    {break;}
   }
void(0);

Probably not what you wanted, but fun anyway.
:)

CM


On 2/4/11 9:41 AM, Sébastien Vauban wrote:
Hi Jeff,

Jeff Horn wrote:
2011/2/3 Sébastien Vauban<address@hidden>:
What about really adding the colon marker, so that one can easily find tags in
the exported file?

Use the CSS content property.

     http://www.w3schools.com/Css/pr_gen_content.asp

If you read my post of [2010-11-25 Thu 11:34] in this thread, you'll see I did
try that, but it's not working for the searches:

* Workaround?

Maybe adding a colon before and after the tag would help? CSS to the
rescue:

#+begin_src
.tag:before {
     content: ":";
}

.tag:after {
     content: ":";
}
#+end_src

Answer is: no! In the HTML display, we now do well see a ":me:", but
searches on that same string fail to find it.

* Solution?

- Really add a colon marker in the exported file (to HTML)

Best regards,
   Seb






reply via email to

[Prev in Thread] Current Thread [Next in Thread]