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
This one may be debatable somehow, I'm not sure. Currently, org-js includes the file: prefix coming out of Org into the generated HTML. For example, from this file:
This generated code is not understood by browsers. The Emacs HTML exporter assumes that a file in the same directory is meant to be available in the directory where the corresponding HTML will be. I cannot ignore this problem, as there are 1500 such image references in the set of Org files I'm currently handling.
So, around this difficulty, I made a publish script with this content:
#!/bin/sh
org=$1
if test -z "$2"; then
html=`echo $1 | sed 's/.org$/.html/'`
else
html=$2
fi
if etc/org2html < $org | sed > $html-tmp 's/="file:/="/g'; then
mv $html-tmp $html
else
rm $html-tmp
exit 1
fi
(OK, I know, this script is buggy, because the if tests the exit status from sed rather than the exit status of org2html. Do not bash me too severly, I'm only half-guilty: I consider that the sed is a temporary measure!)
I would presume that org-js would be a nice guy if it was dropping the file: itself.
François
The text was updated successfully, but these errors were encountered:
Masafumi? Still me...
This one may be debatable somehow, I'm not sure. Currently, org-js includes the
file:
prefix coming out of Org into the generated HTML. For example, from this file:I get this HTML while going through org-js:
This generated code is not understood by browsers. The Emacs HTML exporter assumes that a file in the same directory is meant to be available in the directory where the corresponding HTML will be. I cannot ignore this problem, as there are 1500 such image references in the set of Org files I'm currently handling.
So, around this difficulty, I made a publish script with this content:
(OK, I know, this script is buggy, because the
if
tests the exit status from sed rather than the exit status of org2html. Do not bash me too severly, I'm only half-guilty: I consider that the sed is a temporary measure!)I would presume that org-js would be a nice guy if it was dropping the
file:
itself.François
The text was updated successfully, but these errors were encountered: