Re: ox-html Incorrectly (?) Puts HTML Into the `` Tag</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=emacs-orgmode@gnu.org&q=from:%22Ihor+Radchenko%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Ihor Radchenko</span></span></a></span> <span class="date"><a href="/search?l=emacs-orgmode@gnu.org&q=date:20260103" rel="nofollow">Sat, 03 Jan 2026 08:07:03 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>"Jacob S. Gordon" <jacob.as.gor...@gmail.com> writes: > Please find v1 of a patch attached. All emphasis markers are stripped > except for strike-through, as that could change the meaning or create > ambiguous text. Everything else is not transcoded, including: > > 1. inline source blocks > 2. radio targets & links > 3. math > 4. sub/superscripts > > I think 1 and 2 would be reasonable to support, i.e. replacing links > with a description, falling back to the URI. The others I don’t think > can be handled in an unopinionated, backend-independent way. > > What do people think?</pre><pre> I think that we should not strip "everything else". That's certainly not expected. Rather we should better leave it be. Stripping is rather opinionated :) +1 for links. inline src blocks can be treated same with code markup. export-snippets should probably be stripped. timestamps - org-export-get-date > +(defun org-export-strip-markup (data info) > + "Export DATA to text without emphasis markup using > +`org-export-strip-markup-backend'." I think it may be a good idea to accept optional argument - custom backend. Then, we will be explicit that individual backends are free to replace the default `org-export-string-markup-backend' with their own, possibly derived from default. That will be most flexible. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <<a rel="nofollow" href="https://orgmode.org/">https://orgmode.org/</a>>. Support Org development at <<a rel="nofollow" href="https://liberapay.com/org-mode">https://liberapay.com/org-mode</a>>, or support my work at <<a rel="nofollow" href="https://liberapay.com/yantar92">https://liberapay.com/yantar92</a>> </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg168081.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd10.html#168127">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#168127">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg165709.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg165708.html">Re: ox-html Incorrectly (?) Puts HTML Into the `<titl...</a></span> <span class="sender italic">Jacob S. Gordon</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg165737.html">Re: ox-html Incorrectly (?) Puts HTML Into the `<...</a></span> <span class="sender italic">Ihor Radchenko</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg168011.html">Re: ox-html Incorrectly (?) Puts HTML Into the ...</a></span> <span class="sender italic">Ihor Radchenko</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg168036.html">Re: ox-html Incorrectly (?) Puts HTML Into ...</a></span> <span class="sender italic">Jacob S. Gordon</span></li> </ul></li> <li class="icons-email"><span class="subject"><a href="msg168054.html">Re: ox-html Incorrectly (?) Puts HTML Into the ...</a></span> <span class="sender italic">Jacob S. Gordon</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg168081.html">Re: ox-html Incorrectly (?) Puts HTML Into ...</a></span> <span class="sender italic">Rudolf Adamkovič</span></li> <li class="icons-email tSliceCur"><span class="subject">Re: ox-html Incorrectly (?) Puts HTML Into ...</span> <span class="sender italic">Ihor Radchenko</span></li> </ul> </ul> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: ox-html Incorrectly (?) Puts HTML Into the `<title>` Tag"> <input type="hidden" name="msgid" value="87a4yu1xzv.fsf@localhost"> <input type="hidden" name="relpath" value="emacs-orgmode@gnu.org/msg168127.html"> <input type="submit" value=" Ihor Radchenko "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="emacs-orgmode@gnu.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search emacs-orgmode"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/emacs-orgmode@gnu.org/">emacs-orgmode - all messages</a></li> <li class="icons-about"><a href="/emacs-orgmode@gnu.org/info.html">emacs-orgmode - about the list</a></li> <li class="icons-expand"><a href="/search?l=emacs-orgmode@gnu.org&q=subject:%22Re%5C%3A+ox%5C-html+Incorrectly+%5C%28%5C%3F%5C%29+Puts+HTML+Into+the+%60%3Ctitle%3E%60+Tag%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg168081.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg165709.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">87a4yu1xzv.fsf@localhost</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9b987d007fde49ef',t:'MTc2NzY3MzkxMg=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>