Re: PHP functions to convert markup efficiently [message #183894 is a reply to message #183884] |
Sun, 24 November 2013 18:11 |
James Harris
Messages: 11 Registered: November 2013
Karma:
|
Junior Member |
|
|
"Arno Welzel" <usenet(at)arnowelzel(dot)de> wrote in message
news:529224C1(dot)4060400(at)arnowelzel(dot)de...
> James Harris, 2013-11-23 17:38:
>
>> "Arno Welzel" <usenet(at)arnowelzel(dot)de> wrote in message
> [...]
>>> Besides Markdown and Smarty you can also try DokuWiki - it's markup can
>>> be extended using syntax plugins (and you can create your own plugins as
>>> well to handle block level or inline elements etc.).
>>
>> I took a look at DokuWiki (having previously looked at the others). It's
>> good but does things I don't want. At first glance I couldn't see a way
>> to
>
> What exactly?
Would exactly would I want to prevent it doing? Unfortunately, most of it!
Things like:
* automatic conversion of URLs which are not marked up
* automatic lowering of the case of page names
* interwiki links
* windows shares links
* ALL of its smileys
* its Usenet-style quoting
* most table cell merging
* embeddable HTML and PHP
Sorry, but you did ask! It's not all bad. FWIW there are some things I like
about it.
>> take them away and to restrict the formatting it accepts. I'm not sure I
>
> You can. But you have to write a plugin to filter the markup of course.
>
>> want to invest the time needed to learn any of those packages when, at
>> least
>> for now, it seems that native PHP is easy enough to use and is far more
>> flexible.
>
> Your mileage may vary.
>
> Using just PHP itself and creating all the scripts on your own is of
> course the most flexible way - but I doubt if it is really "easy" if you
> want to create code which you still understand 2 years later ;-)
That is possible but the code so far is tiny. Partly because it has been
easy so far I am more concerned that I may have failed to consider something
fundamental!
James
|
|
|