Bug 260010 - www/py-django-markwhat is broken after textproc/py-markdown 3.x update
Summary: www/py-django-markwhat is broken after textproc/py-markdown 3.x update
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Kubilay Kocak
URL:
Keywords: needs-qa, regression
Depends on:
Blocks:
 
Reported: 2021-11-24 08:47 UTC by Simeon Simeonov
Modified: 2021-11-25 04:42 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (koobs)
koobs: maintainer-feedback? (nc)


Attachments
Upgrades py-django-markwhat from 1.6.1 to 1.6.2 (1.24 KB, text/plain)
2021-11-24 08:47 UTC, Simeon Simeonov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simeon Simeonov 2021-11-24 08:47:55 UTC
Created attachment 229689 [details]
Upgrades py-django-markwhat from 1.6.1 to 1.6.2

www/py-django-markwhat has been broken since textproc/py-markdown was upgraded from 2.6.11 to 3.3.4 (2021-05-05).

The problem is fixed in the latest upstream version - 1.6.2
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-11-25 00:36:51 UTC
Thank you for the report. What is the failure? Please add log as an attachment, thanks!
Comment 2 Simeon Simeonov 2021-11-25 04:42:04 UTC
The failure is that 1.6.1 lacks Markdown 3.x compatibility and calls / uses
the markdown.markdown function in a wrong way.

https://github.com/Alir3z4/django-markwhat/releases/tag/1.6.2 

    output = self.filter_expression.resolve(context)
  File "/usr/lib/python3.9/site-packages/django/template/base.py", line 698, in resolve
    new_obj = func(obj, *arg_vals)
  File "/home/sgs/development/venvs/django_markwhat_test/lib/python3.9/site-packages/django_markwhat/templatetags/markup.py", line 70, in markdown
    return mark_safe(markdown.markdown(
TypeError: markdown() takes 1 positional argument but 2 were given