Getting started
Giulio Piancastelli
gpian at softhome.net
Thu Sep 23 14:00:10 EDT 2004
Frederick Ros wrote:
> Can't you embed HTML tags in textile ? I think you can :
>
> irb(main):021:0> puts RedCloth.new(<<EOL
> irb(main):022:1" <html><head><title> Yeah !!</title></head>
> irb(main):023:1" <body>
> irb(main):024:1" *Are you sure ?*
> irb(main):025:1" </body></html>
> irb(main):026:1" EOL
> irb(main):027:1> ).to_html
> <p><html><head><title> Yeah !!</title></head><br />
> <body><br />
> <strong>Are you sure ?</strong><br />
> </body></html><br />
> </p>
> => nil
> irb(main):028:0>
Yes, but as you'll notice, Textile tends to mess up things. What's that
<br/> between <head> and <body>, for example? And that <p> tag where the
whole html is now included?
It seems difficult to have Textile playing nice when ALL of your entries
are completely HTML based. I'm trying to port some of the entries from
my weblog to Hobix, but I keep getting invalid and strange HTML because
of Textile messing up, inserting paragraph tags in strange ways, and the
like.
Best Regards,
Giulio Piancastelli.
More information about the Hobix-is-the-way
mailing list