I am trying to modify the wmd markdown editor to have new actions.. I have managed to add the action to the editor and it shows the changes on the instant previewer..

but when the answer/question is posted, it get parsed in a deferent way..

how does the code work in posting the markdown and save it to the database?

and is it a job for markdown custom extensions that get used inside the django code?

asked 05 Oct '11, 06:50

Fahd's gravatar image

Fahd
171249
accept rate: 20%

edited 05 Oct '11, 22:21

rickross's gravatar image

rickross ♦♦
12.5k2814972


The markdown is formatted for the editor previewer at the front-end and for the database at the back-end by two completely different modules. You'll probably have to create a new markdown extension for the actions you've prepared, they have to exist at forum/markdownext. Read more information about markdown extensions here: http://freewisdom.org/projects/python-markdown/Extensions

link

answered 05 Oct '11, 13:39

Jordan's gravatar image

Jordan ♦♦
3.1k618
accept rate: 39%

Thanks @Jordan,

I have read about extensions from this particular site before but when does osqa start to used this extension? is it inside the node.py class? or on the writers.py?

I would really appreciate if you could put me on the starting point inside osqa source.

(05 Oct '11, 16:42) Fahd

a useful resource that I have found was sent to me from Freewisdom member @waylan

he said:

I would suggest familiarizing yourself with the extension API documented here: writing_extensions.md

I found it really helpful and suggests it for others.

link

answered 08 Oct '11, 02:46

Fahd's gravatar image

Fahd
171249
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×44
×29
×5
×3

Asked: 05 Oct '11, 06:50

Seen: 534 times

Last updated: 08 Oct '11, 02:46

powered by OSQA