I've added mezzanine-pagedown to the list of third-party apps in the readme,
and I've just merged the filebrowser-safe changes in - at the latest, I'll do an official release with the next Mezzanine release.
On Fri, Nov 16, 2012 at 9:41 PM, Stephen McDonald <st...@jupo.org> wrote:I've added mezzanine-pagedown to the list of third-party apps in the readme,Great! Thanks.One note though.. I'm not sure Pagedown is considered a WYSIWYG editor. It's a markdown editor, so perhaps a WYSIWYM? No biggie though.and I've just merged the filebrowser-safe changes in - at the latest, I'll do an official release with the next Mezzanine release.Oh great. Perhaps some documentation is needed to explain how an app can launch the filebrowser for file selection? Where should such documentation go? The documentation text is already in the pull request.
Also, ideally, other editors/widgets should use this browser instead of the current if-else special handling for each calling widget in filebrowser-safe. From a user's point-of-view, the visible difference is that the filebrowser pop-up window is replaced by an in-window jquery-ui dialog. From a developer's point-of-view, it's a single, generic API instead of doing different things for different calling widgets.
Hello, I just installed mezzanine-markdown and its awesome!
However, I believe I'm experiencing some bug with codehilite.
[...] However, when I save the field and visit the site, the code is highlighted, but it appears in a single line. Examining the rendered HTML reveals that all the <span> tags generated by pygments follow each other without spaces or line breaks.
For example, my markdown is as follows:#!pythonfrom fake import liesif somestuff:do_stuffAnd the result in the site is a single line:fromfakeimportliesifsomestuff:do_stuffAny ideas?
The template tag I'm using is {{ blog_post.content|richtext_filter|safe }}I removed the "safe" filter, and of course, that escaped pagedown's output, but in this case I can see the spaces are preserved.
So, is the safe filter conflicting with pagedown?
What version of Python, Django and Mezzanine are you testing with? I have 2.7, 1.4.2 and latest master from github respectively.
markdown(content, ['codehilite',])
Mezzanine, Grappelli-safe, Filebrowser-safe: I'm using slightly modified versions with fewer jquery/jquery-ui versions fighting about. They are in the pull-request queue, although I'm not sure if they will be accepted. I don't think this is relevant to your problem, not in an obvious way anyway, but feel free to try them at:
The good news is that mezzanine_pagedown is working as expected.
I now have to figure out if there is some script or style messing with the page or something. Any ideas? Can a CSS style or JS script do something like this?