Skip to content

Instantly share code, notes, and snippets.

@ericf
Created March 23, 2010 04:49
Show Gist options
  • Save ericf/340846 to your computer and use it in GitHub Desktop.
Save ericf/340846 to your computer and use it in GitHub Desktop.
// Markout
var docFrag = Y.Markout(),
p, ul;
p = docFrag.p();
p.strong().text('MarkoutJS');
p.text(' - ');
p.a({ href: 'http://oddnut.com' }).text('Oddnut Software');
ul = docFrag.ul();
ul.li().em().text('Eric Ferraiuolo');
ul.li().em().text('David Fogel');
<!-- Desired Output -->
<p><strong>MarkoutJS</strong> — <a href="http://oddnut.com">Oddnut Software</a></p>
<ul>
<li><em>Eric Ferraiuolo<em></li>
<li><em>David Fogel</em></li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment