in reply to Re^13: Making Perl Monks a better place for newbies (and others)
in thread Making Perl Monks a better place for newbies (and others)

> More importantly, given that input can consist of a mixture of html and <pre>-formatted blocks and <code>-formatted blocks (etc.), the problem of determining which newlines to replace and which to leave alone becomes Very Hard Indeed.

Hard but not impossible.

But thanks for mentioning, I didn't think about also excluding <pre> -blocks in my nodelet hack.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Replies are listed 'Best First'.
Re^15: Making Perl Monks a better place for newbies (and others)
by jdporter (Paladin) on Feb 08, 2020 at 23:10 UTC
    Hard but not impossible.

    Plenty hard. 90% isn't nearly good enough.

    I'd be much more interested in trying to support a completely different format — like markdown — than making a tiny tweak to our existing format which will break everybody's brain (certain newbs excepted).

    I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.
      Not my experience, the code is only complicated because of the wiki mark up and link transformations.

      Paragraphs are easy.

      We've created several 1000 posts since 2016 and I know no case of <p> inserted in code blocks.

      But my approach is quite different to Everything's which sometimes creates weird results.

      I'd say mine is some percent better.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

        It *really* depends. I have written code that does this: markdown-ish auto-formatting inside/beside putative HTML. It is not trivial and unless you are willing to reject, or be highly opinionated about what to do with, “broken” content it gets harder; especially to be able to give meaningful feedback about what was wrong. I also think the world does not need another flavor of markdown or wikisyntax.

        I think it’s worth trying to do. The biggest impediment for me to hacking on PM as-is is that I can’t just download and build a local copy where I can be stupid or experimental or whatever.