Converting a Snip

We need to do the following things.

  1. Headings
  2. Links
  3. Bolds
  4. Italics
  5. Quotes
  6. Lists
  7. Images
  8. HTML Objects
  9. Line Throws

Headings

Headings, lines start with “1 ” or “1.1”, the ones need to be H3, or the title, and the onedotone need to be H3 or H4, depending on how the one is treated and if there is one.

Links

These take the following format

{link:flickr pictures|http://www.flickr.com/photos/davelevy/sets/72157623287187871/}

The anchor text is between the colon and the pipe, the URL is between the pipe and the last ‘}’. I need to extract the anchor and the URL and generate an anchor tag.

‘< a =HREF=”‘ + $hyperlink + ‘”>’ + $anchortext + ‘</a>’

Don’t forget about the img decorations for the hyperlink.

Don’t forget about the name only anchors!

One thought on “Converting a Snip

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.