Hi I've got a fresh install of rev 554 and whenever I post a comment it's never shown. I know it gets posted because I can edit it but even if I do so, it fails to show. It's also not a db problem because I created a test database with a new user just to try it.

Looking at the html displayed there's nothing there just

<textarea name="comment"></textarea>

Which is where I think the comment text should go. As you can see in the following image there are two comments by myself but no text is shown.

screenshot of comments not showing

PS: The screenshot is in spanish but I also did try with the unmodified svn version and got the same results.

asked 03 Aug '10, 20:39

kirbuchi's gravatar image

kirbuchi
51237
accept rate: 0%

2

Do you see anything in the log file regarding markdown? Check in log/django.osqa.log

(03 Aug '10, 20:46) Hernani Cerq... ♦♦

There are two versions of the markdown parser. One is a fork of the other, so they have a very similar api. If you had to do that, is because you have the wrong one installed.The one you should be installing is in http://www.freewisdom.org/projects/python-markdown/. Pay attention to path conflicts too.

link

answered 29 Aug '10, 18:23

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

I figured it out. On /trunk/forum/markdownext/mdx_limitedsyntax.py on line 1 it says:

   `import markdown`

but it should say:

   `import markdown as md`

Thanks Hernani, your comment pointed to the right direction.

link

answered 04 Aug '10, 03:29

kirbuchi's gravatar image

kirbuchi
51237
accept rate: 0%

hum, so you're probably using some different version. But glad it worked.

(04 Aug '10, 09:22) Hernani Cerq... ♦♦

Nope. I'm using the version I downloaded from http://svn.osqa.net/svnroot/osqa/trunk which says rev 554

(04 Aug '10, 18:59) kirbuchi

No, I mean a different markdown version :)

(05 Aug '10, 09:24) Hernani Cerq... ♦♦

I don’t see how that hack would help. The markdown package is referenced as markdown in that file, not md. Didn’t help for me, anyway.

(15 Aug '10, 20:11) Kevin Yank

markdown2 seems to be the solution

After installing markdown2 library I changed all calls to "markdown2" from "markdown" in those 2 files:

forum/markdownext/mdx_settingsparser.py
forum/markdownext/mdx_limitedsyntax.py

for example:
import markdown > import markdown2
class LimitedSyntaxExtension(markdown.Extension): > class LimitedSyntaxExtension(markdown2.Extension):

Works ok for me. Hope there are no side effects for this :)

Shouldn't it be fixed in source code or am I getting something wrong?

link

answered 29 Aug '10, 11:50

tootie_ma's gravatar image

tootie_ma
356311
accept rate: 57%

edited 29 Aug '10, 11:52

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:

×62
×29
×10

Asked: 03 Aug '10, 20:39

Seen: 564 times

Last updated: 21 Aug '11, 05:32

powered by OSQA