• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

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

Example to generate headings in flowing text:
You may find yourself in the hole doing this.

Output heading:

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

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

[eluser]Phil Sturgeon[/eluser]
Its a bit rubbish this function. Cant be used with parse_smilies() either.

I saw in that unmentionable elsewhere that this is not exactly the only problem with auto_typography(). There's a port of a similar function from WP posted. You may also have better luck with that.

Use textile Wink

Use Markdown Wink

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.