|
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? |
|
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 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. |