Hi All,


I’m having a Dickens of a time understanding txexprs and how to use them 
properly. I have managed to get a footnote system *nearly* working. To do 
so I want to create output that looks like this: 

<a href="#fn1"><sup>1</sup></a>

. 


I have written the following Pollen code to create such links:
(txexpr 'a `((href ,(string-append "#fn" (number->string footnote-number))))
         `(sup ,(number->string footnote-number)))


Everything is correct here *except* the sup produces not <sup>, but &sup;. 
Assuming, for instance, that the value of footnote-number is 1, the above 
code produces the following HTML:

<a href="#fn1">&sup;1</a>

I’ve tried to look at the quoting/quasi-quoting documentation, as well as 
the Pollen documentation and the txexpr documentation, but I think I am 
just not getting something. How *should* this be written?


Thanks,


Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to