CodeIgniter Forums
auto_typography() - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: auto_typography() (/showthread.php?tid=1826)



auto_typography() - El Forum - 06-29-2007

[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';



auto_typography() - El Forum - 07-02-2007

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


auto_typography() - El Forum - 07-02-2007

[eluser]Crimp[/eluser]
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.


auto_typography() - El Forum - 07-05-2007

[eluser]marcoss[/eluser]
Use textile Wink


auto_typography() - El Forum - 07-05-2007

[eluser]Shadowhand[/eluser]
Use Markdown Wink