Re: [PHP] Non-trivial task of converting text to HTML

2005-12-08 Thread David Grant
Hi Roman, Check out this: http://www.michelf.com/projects/php-markdown/ Would this help you? Cheers, David Roman Ivanov wrote: > Task: > Create a script that converts text into HTML with paragraphs. > > Problem: > Input text could use the book notation, as well as the web notation, > plus it

Re: [PHP] Non-trivial task of converting text to HTML

2005-12-08 Thread Eric Gorr
Quoting Roman Ivanov <[EMAIL PROTECTED]>: Eric Gorr wrote: Quoting Roman Ivanov <[EMAIL PROTECTED]>: Output text should be correctly formatted without using lots of br's and  's. Doing so manually is not a problem, I would just use for web paragraphs, and for book paragraphs. However, for

Re: [PHP] Non-trivial task of converting text to HTML

2005-12-08 Thread Jochem Maas
Roman Ivanov wrote: Task: Create a script that converts text into HTML with paragraphs. Problem: Input text could use the book notation, as well as the web notation, plus it can contain HTML. == This is a title This is a Book paragraph. This is another book paragraph. This is yet anoth

Re: [PHP] Non-trivial task of converting text to HTML

2005-12-07 Thread tg-php
Maybe I'm missing some requirement, but what if you just used HTML "" tags. You can still use other HTML for formatting within the tags but it'll pay attention to carriage returns/line feeds and spaces without having to use s For example, if you did the following... is it what you need or wha

Re: [PHP] Non-trivial task of converting text to HTML

2005-12-07 Thread Roman Ivanov
Eric Gorr wrote: Quoting Roman Ivanov <[EMAIL PROTECTED]>: Output text should be correctly formatted without using lots of br's and  's. Doing so manually is not a problem, I would just use for web paragraphs, and for book paragraphs. However, formatting such text with a scrip is very diffi

Re: [PHP] Non-trivial task of converting text to HTML

2005-12-07 Thread Eric Gorr
Quoting Roman Ivanov <[EMAIL PROTECTED]>: Output text should be correctly formatted without using lots of br's and  's. Doing so manually is not a problem, I would just use for web paragraphs, and for book paragraphs. However, formatting such text with a scrip is very difficult. Does anyone

[PHP] Non-trivial task of converting text to HTML

2005-12-07 Thread Roman Ivanov
Task: Create a script that converts text into HTML with paragraphs. Problem: Input text could use the book notation, as well as the web notation, plus it can contain HTML. == This is a title This is a Book paragraph. This is another book paragraph. This is yet another book paragraph, bu