I've currently returned to doing a little work on PMEdit (see PerlMonks Editor). After mostly fixing a nasty rendering problem I find I need to know which PM specific markup is block level, which is not and which is both.

For example, c or code is both. readmore is block level only. spoiler I presume is not block level.

Can someone confirm that I have that much right, or at least point me at the code where such things are handled?

What other PM/everything specific markup need I be aware of? (I've checked Perl Monks Approved HTML tags btw.)

Update: Should PMEdit render nested elements correctly? For example:

<i><p>italic <b>bold italic</i> bold</p> <p>still bold.</b> normal</p>

renders as:

italic bold italic bold

still bold. normal

which, although expected, is rather frowned on. Would it be appropriate for PMEdit to coerce that to:

<p><i>italic <b>bold italic</b></i><b> bold</b></p> <p><b>still bold.</b> normal</p>

which renders as:

italic bold italic bold

still bold. normal

Update: Should formating be supported across code blocks. For example:

<i><code> code block italicised </code></i>

Renders as:

code block italicised

DWIM is Perl's answer to Gödel

In reply to Ideas for PerlMonks Markup support in an editor by GrandFather

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.