* Re: Pandoc 1.12.4.2: fails to recognize <span id"xyz"/>
@ 2014-06-30 8:26 Mark Szepieniec
[not found] ` <CAE4-1rW=zh+vuOYv+gMFJBAv0iCx0xYZhSAaX7fGJ-XfsONHLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Mark Szepieniec @ 2014-06-30 8:26 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 2890 bytes --]
I just compiled the github version, and it seems to work OK, although, I'm
not 100% clear on what you are expecting:
$ cat spantest.html
<html>
<span id="x1"/>
<span id="x2">blabla</span>
</html>
$ pandoc -t latex spantest.html
blabla
$ pandoc --version
pandoc 1.13
Compiled with texmath 0.6.6.3, highlighting-kate 0.5.8.3.
Syntax highlighting is supported for the following languages:
actionscript, ada, apache, asn1, asp, awk, bash, bibtex, boo, c,
changelog,
clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css, curry, d,
diff, djangotemplate, doxygen, doxygenlua, dtd, eiffel, email, erlang,
fortran, fsharp, gcc, gnuassembler, go, haskell, haxe, html, ini,
isocpp,
java, javadoc, javascript, json, jsp, julia, latex, lex, literatecurry,
literatehaskell, lua, makefile, mandoc, markdown, matlab, maxima,
metafont,
mips, modelines, modula2, modula3, monobasic, nasm, noweb, objectivec,
objectivecpp, ocaml, octave, pascal, perl, php, pike, postscript,
prolog,
pure, python, r, relaxngcompact, restructuredtext, rhtml, roff, ruby,
rust,
scala, scheme, sci, sed, sgml, sql, sqlmysql, sqlpostgresql, tcl,
texinfo,
verilog, vhdl, xml, xorg, xslt, xul, yacc, yaml
Default user data directory: /home/marks/.pandoc
Copyright (C) 2006-2014 John MacFarlane
Web: http://johnmacfarlane.net/pandoc
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
On Mon, Jun 30, 2014 at 9:25 AM, Sebastian Humenda <shumenda-Mmb7MZpHnFY@public.gmane.org> wrote:
> Hello,
>
> as the subject indicates, Pandoc 1.12.4.2 fails to recognize
>
> <span id="xyz"/>
>
> The following works, but is IMHO hardly intuitive:
>
> <span id="xyz"></span>
>
> When exporting to LaTeX, The first leads to "{}" being outputed.
> Is this fixed in a later version of Pandoc (which I cannot try yet) or is
> this
> indeed a bug?
>
> Thanks
> Sebastian
> --
> Web: http://www.crustulus.de | Blog:
> http://www.crustulus.de/cgi-bin/blog.cgi?de-0
> Freies Latein-Deutsch-Wörterbuch: http://www.crustulus.de/freedict.de.html
> FreeDict: Free multilingual dictionary databases - http://www.freedict.org
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAE4-1rW%3Dzh%2BvuOYv%2BgMFJBAv0iCx0xYZhSAaX7fGJ-XfsONHLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #2: Type: text/html, Size: 5234 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Pandoc 1.12.4.2: fails to recognize <span id"xyz"/>
[not found] ` <CAE4-1rW=zh+vuOYv+gMFJBAv0iCx0xYZhSAaX7fGJ-XfsONHLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-06-30 8:38 ` Sebastian Humenda
2014-06-30 8:54 ` Mark Szepieniec
0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Humenda @ 2014-06-30 8:38 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]
Hello Mark,
Mark Szepieniec schrieb am 30.06.2014, 10:26 +0200:
>I just compiled the github version, and it seems to work OK, although, I'm
>not 100% clear on what you are expecting:
>
>$ cat spantest.html
><html>
>
><span id="x1"/>
>
><span id="x2">blabla</span>
>
></html>
>
>$ pandoc -t latex spantest.html
>blabla
I should have been clear about which source format I am talking, that's
Markdown. I want to reference something in the document, I was told to use:
[link](#myid)
<span id="myid"></span>
And this gets translated into a hyperref and a label.
When using <span id"=myid"/>, I expect the same, but it doesn't work.
As a side note, it would be very handy if the same would be true for HTML input.
Thanks!
Sebastian
--
Web: http://www.crustulus.de | Blog: http://www.crustulus.de/cgi-bin/blog.cgi?de-0
Freies Latein-Deutsch-Wörterbuch: http://www.crustulus.de/freedict.de.html
FreeDict: Free multilingual dictionary databases - http://www.freedict.org
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Pandoc 1.12.4.2: fails to recognize <span id"xyz"/>
2014-06-30 8:38 ` Sebastian Humenda
@ 2014-06-30 8:54 ` Mark Szepieniec
[not found] ` <CAE4-1rWT1rg0504MPuUD5VZmH6OrGPHA_pja1Ci77NOGnKZBdg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Mark Szepieniec @ 2014-06-30 8:54 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 2213 bytes --]
I see.
The following seems to be a more appropriate test, and indeed, <span
id="x2"></span> seems to get a label, while <span id="x3"/> does not.
$ cat spantest.md
[link1](#x1)
[link2](#x2)
[link3](#x3)
<span id="x1">blabla</span>
<span id="x2"></span>
<span id="x3"/>
$ pandoc -t latex spantest.md
\hyperref[x1]{link1}
\hyperref[x2]{link2}
\hyperref[x3]{link3}
\label{x1}{blabla} \label{x2}{}
On Mon, Jun 30, 2014 at 10:38 AM, Sebastian Humenda <shumenda-Mmb7MZpHnFY@public.gmane.org> wrote:
> Hello Mark,
>
> Mark Szepieniec schrieb am 30.06.2014, 10:26 +0200:
> >I just compiled the github version, and it seems to work OK, although, I'm
> >not 100% clear on what you are expecting:
> >
> >$ cat spantest.html
> ><html>
> >
> ><span id="x1"/>
> >
> ><span id="x2">blabla</span>
> >
> ></html>
> >
> >$ pandoc -t latex spantest.html
> >blabla
> I should have been clear about which source format I am talking, that's
> Markdown. I want to reference something in the document, I was told to use:
>
> [link](#myid)
>
> <span id="myid"></span>
>
> And this gets translated into a hyperref and a label.
> When using <span id"=myid"/>, I expect the same, but it doesn't work.
>
> As a side note, it would be very handy if the same would be true for HTML
> input.
>
> Thanks!
> Sebastian
> --
> Web: http://www.crustulus.de | Blog:
> http://www.crustulus.de/cgi-bin/blog.cgi?de-0
> Freies Latein-Deutsch-Wörterbuch: http://www.crustulus.de/freedict.de.html
> FreeDict: Free multilingual dictionary databases - http://www.freedict.org
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAE4-1rWT1rg0504MPuUD5VZmH6OrGPHA_pja1Ci77NOGnKZBdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #2: Type: text/html, Size: 3890 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Pandoc 1.12.4.2: fails to recognize <span id"xyz"/>
[not found] ` <CAE4-1rWT1rg0504MPuUD5VZmH6OrGPHA_pja1Ci77NOGnKZBdg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-06-30 9:06 ` BPJ
[not found] ` <CADAJKhD0kTOjowAWZV7qEG1uU4dDhj4ACg77HdQHsgrrEHqLiA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: BPJ @ 2014-06-30 9:06 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 3633 bytes --]
That is probably as it should be. I've never heard about empty span
elements being valid HTML. In any case pandoc does not support it. I agree
it would have looked nicer in this case, of course!
/bpj
måndag 30 juni 2014 skrev Mark Szepieniec <mszepien-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> I see.
>
> The following seems to be a more appropriate test, and indeed, <span
> id="x2"></span> seems to get a label, while <span id="x3"/> does not.
>
> $ cat spantest.md
> [link1](#x1)
>
> [link2](#x2)
>
> [link3](#x3)
>
> <span id="x1">blabla</span>
> <span id="x2"></span>
> <span id="x3"/>
>
> $ pandoc -t latex spantest.md
> \hyperref[x1]{link1}
>
> \hyperref[x2]{link2}
>
> \hyperref[x3]{link3}
>
> \label{x1}{blabla} \label{x2}{}
>
>
>
> On Mon, Jun 30, 2014 at 10:38 AM, Sebastian Humenda <shumenda-Mmb7MZpHnFY@public.gmane.org
> <javascript:_e(%7B%7D,'cvml','shumenda-Mmb7MZpHnFY@public.gmane.org');>> wrote:
>
>> Hello Mark,
>>
>> Mark Szepieniec schrieb am 30.06.2014, 10:26 +0200:
>> >I just compiled the github version, and it seems to work OK, although,
>> I'm
>> >not 100% clear on what you are expecting:
>> >
>> >$ cat spantest.html
>> ><html>
>> >
>> ><span id="x1"/>
>> >
>> ><span id="x2">blabla</span>
>> >
>> ></html>
>> >
>> >$ pandoc -t latex spantest.html
>> >blabla
>> I should have been clear about which source format I am talking, that's
>> Markdown. I want to reference something in the document, I was told to
>> use:
>>
>> [link](#myid)
>>
>> <span id="myid"></span>
>>
>> And this gets translated into a hyperref and a label.
>> When using <span id"=myid"/>, I expect the same, but it doesn't work.
>>
>> As a side note, it would be very handy if the same would be true for HTML
>> input.
>>
>> Thanks!
>> Sebastian
>> --
>> Web: http://www.crustulus.de | Blog:
>> http://www.crustulus.de/cgi-bin/blog.cgi?de-0
>> Freies Latein-Deutsch-Wörterbuch:
>> http://www.crustulus.de/freedict.de.html
>> FreeDict: Free multilingual dictionary databases -
>> http://www.freedict.org
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> <javascript:_e(%7B%7D,'cvml','pandoc-discuss%2Bunsubscribe@googlegroups.com');>
> .
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> <javascript:_e(%7B%7D,'cvml','pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org');>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/CAE4-1rWT1rg0504MPuUD5VZmH6OrGPHA_pja1Ci77NOGnKZBdg%40mail.gmail.com
> <https://groups.google.com/d/msgid/pandoc-discuss/CAE4-1rWT1rg0504MPuUD5VZmH6OrGPHA_pja1Ci77NOGnKZBdg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhD0kTOjowAWZV7qEG1uU4dDhj4ACg77HdQHsgrrEHqLiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #2: Type: text/html, Size: 5633 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Pandoc 1.12.4.2: fails to recognize <span id"xyz"/>
[not found] ` <CADAJKhD0kTOjowAWZV7qEG1uU4dDhj4ACg77HdQHsgrrEHqLiA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-06-30 10:25 ` Sebastian Humenda
2014-06-30 16:28 ` Daniel Staal
0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Humenda @ 2014-06-30 10:25 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 557 bytes --]
Hello,
BPJ schrieb am 30.06.2014, 11:06 +0200:
>That is probably as it should be. I've never heard about empty span
>elements being valid HTML. In any case pandoc does not support it. I agree
>it would have looked nicer in this case, of course!
Then what about suppporting <a id"foo"/>?
Thanks
Sebastian
--
Web: http://www.crustulus.de | Blog: http://www.crustulus.de/cgi-bin/blog.cgi?de-0
Freies Latein-Deutsch-Wörterbuch: http://www.crustulus.de/freedict.de.html
FreeDict: Free multilingual dictionary databases - http://www.freedict.org
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Pandoc 1.12.4.2: fails to recognize <span id"xyz"/>
2014-06-30 10:25 ` Sebastian Humenda
@ 2014-06-30 16:28 ` Daniel Staal
2014-06-30 16:47 ` Sebastian Humenda
0 siblings, 1 reply; 8+ messages in thread
From: Daniel Staal @ 2014-06-30 16:28 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
--As of June 30, 2014 12:25:43 PM +0200, Sebastian Humenda is alleged to
have said:
> BPJ schrieb am 30.06.2014, 11:06 +0200:
>> That is probably as it should be. I've never heard about empty span
>> elements being valid HTML. In any case pandoc does not support it. I
>> agree it would have looked nicer in this case, of course!
> Then what about suppporting <a id"foo"/>?
--As for the rest, it is mine.
Empty elements of that type are only valid HTML if they are 'void'
elements[^1]. Here's the complete list of void elements:
~~~
area, base, br, col, command, embed, hr, img, input, keygen, link, meta,
param, source, track, wbr
~~~
See: <http://www.w3.org/TR/html-markup/syntax.html#syntax-elements>
You are basically trying to create an id on nothing - which is the same as
no id tag. Put the tag *on* something.
Daniel T. Staal
[^1]: Unless otherwise specified in the element description. It's not for
`a` or `span`.
---------------------------------------------------------------
This email copyright the author. Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes. This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Pandoc 1.12.4.2: fails to recognize <span id"xyz"/>
2014-06-30 16:28 ` Daniel Staal
@ 2014-06-30 16:47 ` Sebastian Humenda
0 siblings, 0 replies; 8+ messages in thread
From: Sebastian Humenda @ 2014-06-30 16:47 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 952 bytes --]
Hello Daniel,
Daniel Staal schrieb am 30.06.2014, 12:28 -0400:
>--As of June 30, 2014 12:25:43 PM +0200, Sebastian Humenda is alleged to have
>said:
>
>>BPJ schrieb am 30.06.2014, 11:06 +0200:
>>>That is probably as it should be. I've never heard about empty span
>>>elements being valid HTML. In any case pandoc does not support it. I
>>>agree it would have looked nicer in this case, of course!
>>Then what about suppporting <a id"foo"/>?
>
>--As for the rest, it is mine.
>
>Empty elements of that type are only valid HTML if they are 'void'
>elements[^1]. Here's the complete list of void elements:
[...]
I actually didn't know that this was illegal by the standard. Thanks
Sebastian
--
Web: http://www.crustulus.de | Blog: http://www.crustulus.de/cgi-bin/blog.cgi?de-0
Freies Latein-Deutsch-Wörterbuch: http://www.crustulus.de/freedict.de.html
FreeDict: Free multilingual dictionary databases - http://www.freedict.org
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Pandoc 1.12.4.2: fails to recognize <span id"xyz"/>
@ 2014-06-30 7:25 Sebastian Humenda
0 siblings, 0 replies; 8+ messages in thread
From: Sebastian Humenda @ 2014-06-30 7:25 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 605 bytes --]
Hello,
as the subject indicates, Pandoc 1.12.4.2 fails to recognize
<span id="xyz"/>
The following works, but is IMHO hardly intuitive:
<span id="xyz"></span>
When exporting to LaTeX, The first leads to "{}" being outputed.
Is this fixed in a later version of Pandoc (which I cannot try yet) or is this
indeed a bug?
Thanks
Sebastian
--
Web: http://www.crustulus.de | Blog: http://www.crustulus.de/cgi-bin/blog.cgi?de-0
Freies Latein-Deutsch-Wörterbuch: http://www.crustulus.de/freedict.de.html
FreeDict: Free multilingual dictionary databases - http://www.freedict.org
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-06-30 16:47 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-30 8:26 Pandoc 1.12.4.2: fails to recognize <span id"xyz"/> Mark Szepieniec
[not found] ` <CAE4-1rW=zh+vuOYv+gMFJBAv0iCx0xYZhSAaX7fGJ-XfsONHLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-30 8:38 ` Sebastian Humenda
2014-06-30 8:54 ` Mark Szepieniec
[not found] ` <CAE4-1rWT1rg0504MPuUD5VZmH6OrGPHA_pja1Ci77NOGnKZBdg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-30 9:06 ` BPJ
[not found] ` <CADAJKhD0kTOjowAWZV7qEG1uU4dDhj4ACg77HdQHsgrrEHqLiA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-30 10:25 ` Sebastian Humenda
2014-06-30 16:28 ` Daniel Staal
2014-06-30 16:47 ` Sebastian Humenda
-- strict thread matches above, loose matches on Subject: below --
2014-06-30 7:25 Sebastian Humenda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).