i've got content-editable <div>.
when correct markdown syntax entered div, need add correct html around outside, preserve markdown characters within. instance:
# h1 would parsed to
<h1># h1</h1> this similar way ia writer behaves, , think byword well.
anything out there works this?
sounds neat project.
if you're using content-editable, , want update user's input they're typing, you'll need dive gnarly stuff, if want support ie.
i've written 2 small libraries caret , wysiwyg help, take @ samples each.
you can use caret watch user's input, , use wysiwyg things wrap line in h1 tag. line wrapping little tricky, can @ caret's source hints though.
even if don't use either library, should started.
Comments
Post a Comment