Welcome Guest, Not a member yet? Register   Sign In
auto_typography()
#1

[eluser]Crimp[/eluser]
Use of the </p><p> for pre-defined block-level elements with tags.

Example to generate headings in flowing text:
Code:
<strong>Hole</strong>
You may find yourself in the hole doing this.

Output heading:
Code:
</p><strong>Hole</strong><p>

The "ol" in Hole makes it an ordered list.

Code:
// Block level elements that should not be wrapped inside <p> tags
var $block_elements = 'div|blockquote|pre|code|h\d|script|ol|un';


Messages In This Thread
auto_typography() - by El Forum - 06-29-2007, 04:11 AM
auto_typography() - by El Forum - 07-02-2007, 05:05 AM
auto_typography() - by El Forum - 07-02-2007, 05:50 AM
auto_typography() - by El Forum - 07-05-2007, 01:21 AM
auto_typography() - by El Forum - 07-05-2007, 12:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB