[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [MirageOS-devel] using cow
On 23 Dec 2013, at 18:54, Anil Madhavapeddy wrote: > On 23 Dec 2013, at 14:56, Richard Mortier <Richard.Mortier@xxxxxxxxxxxxxxxx> > wrote: > >> thought: given the use and abuse to which xml/html are put though (or, if >> you prefer, the flexibility which they provide), having some kind of [`Raw >> of string] might be useful. kind of like a CDATA but which doesn't leave any >> tag in the xml when rendered to a string (ie. the element tag never gets to >> the browser). > > We're trying to avoid that, since Cow is only an XML parser. What we're > missing is a proper HTML parser, which can be built on top of XMLM easily > enough. Just needs someone to map the XMLM signals onto the HTML-specific > rules (some tags shouldn't be closed at all, and a set of entities is > predefined). > > So for now, think of Cow.Html as actually being Cow.XHtml, and you should be > set. hm-- i'm not sure an html parser will actually help. some of the inline markdown content is invalid html (i believe). eg., rendering the blockquotes from your slides is another piece of inline markdown that has to be done manually: > this is a blockquote rendered as > a <blockquote><p>...</p></blockquote> needs to have the <blockquote>...etc put in manually. surrounding with CDATA allows cow to escape the to > similarly some of the indentation in code blocks isn't passed through by CDATA correctly. i've managed to make most of them except your lectures look ok. i'll push changes -- if you can figure out a solution, let me know. else i'll have to go back to serving fragments from files i think. -- Cheers, R. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. _______________________________________________ MirageOS-devel mailing list MirageOS-devel@xxxxxxxxxxxxxxxxxxxx http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |