This may offer a way to convert data into HTML.. from a seaside app.. http://skrishnamachari.wordpress.com/2010/07/06/markupbuilder-in-smalltalk/ On Mon, Apr 30, 2012 at 2:42 AM, Kristinn <kristinn@webmasterfu.com> wrote:
Yes, that helps a lot. Thank you. I'll take a look at webdoc. I do want to use it with Seaside, so that may be just what I'm looking for. Cheers, Kris
On 04/29/2012 04:53 PM, Camillo Bruni wrote:
hi kris,
beware that the markdown parser isn't complete yet :/.
normally you would write a visitor which walks over the returned data (markdown nodes in this case). If you inspect further the returned elements you will see how they reflect the different markdown entities...
I didn't add a default implementation to the petit-markdown package yet, but you can find an implementation for seaside in the following repos
http://ss3.gemstone.com/ss/**webdoc <http://ss3.gemstone.com/ss/webdoc>
look for the CommentFormatter class.
hope that helps a bit cami
On 2012-04-29, at 14:49, Kristinn wrote:
Hello,
I'm trying to use the PetitParserMarkdown package. I run the code below in a workspace and get an array. I'm not sure how to turn the array into HTML. Any help is greatly appreciated. Thanks, Kris | doc parsedDoc| doc := ' This is Markdown! ================= and another header ------------------
This is a normal paragraph. And this too! '.
parsedDoc := PPMarkdownParser new parse: doc . parsedDoc .