You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, Masafumi ! I hope you are doing well, and that life is good for you !
I'm trying to enrich org-js usage by combining it with other JavaScript frameworks. It seems that #+ATTR_HTML is usable to push new attributes into the generated HTML, I'll try to see how much control I may have on this. For inserting raw HTML, which is a safe last resort, my little tries have not been successful so far. So this new Issue on GitHub !
The current Org manual contains:
12.6.4 Quoting HTML tags
------------------------
Plain ‘<’ and ‘>’ are always transformed to ‘<’ and ‘>’ in HTML
export. If you want to include raw HTML code, which should only appear
in HTML export, mark it with ‘@@html:’ as in ‘@@html:<b>@@bold
text@@html:</b>@@’. For more extensive HTML that should be copied
verbatim to the exported file use either
#+HTML: Literal HTML code for export
or
#+BEGIN_HTML
All lines between these markers are exported literally
#+END_HTML
It seems that org-js does not support any of these three methods. Given this input:
#+TITLE: OK
Normal paragraph.
Paragraph with @@html:<b>@@Inlined tags@@html:</b>@@ embedeed.
#+HTML: <b>Single-line</b> HTML excerpt.
#+BEGIN_HTML
<quote>
Multi-line HTML excerpt.
</quote>
#+END_HTML
org-js produces this output:
<h1>OK</h1>
<ul></ul>
<p>Normal paragraph.</p>
<p>Paragraph with @@html:<b>@@Inlined tags@@html:</b>@@ embedeed.</p>
<p><quote>
Multi-line HTML excerpt.
</quote></p>
As you may see, special HTML characters are always escaped. Moreover, the Single-line HTML excerpt wholly disappears.
François
The text was updated successfully, but these errors were encountered:
Hi, Masafumi ! I hope you are doing well, and that life is good for you !
I'm trying to enrich org-js usage by combining it with other JavaScript frameworks. It seems that
#+ATTR_HTML
is usable to push new attributes into the generated HTML, I'll try to see how much control I may have on this. For inserting raw HTML, which is a safe last resort, my little tries have not been successful so far. So this new Issue on GitHub !The current Org manual contains:
It seems that org-js does not support any of these three methods. Given this input:
org-js produces this output:
As you may see, special HTML characters are always escaped. Moreover, the Single-line HTML excerpt wholly disappears.
François
The text was updated successfully, but these errors were encountered: