CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Markdown
Pages: [1]

Author Topic: Markdown  (Read 635 times)

jyee

  • I’m new here
  • *
  • Posts: 19
  • Karma: 3
Markdown
July 30, 2010, 10:05:59 am
I'm trying to create a markdown filter for civi and having a nightmare of a time figuring out where to hook into the system.

I think my general problem is that civi uses wysiwyg (or just a textarea) to generate html on the input... then nothing happens on the output (html straight to the browser).  For markdown, it's the opposite: users write markdown that needs no filtering on the input, then markdown needs to generate html on the output.  Any thoughts on the best way to pass all civicrm output through markdown to create html?

p.s. i tried a civicrm_buildForm() looping through $form->_values and running markdown against those values, but they didn't seem to change anything (e.g. $form->_values['intro_text'] on a contribution page)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Markdown

This forum was archived on 2017-11-26.