internetarchive/infogami

Do we need to maintain a separate fork of markdown?

Opened this issue · 2 comments

As discussed in #47 (comment), the markdown changes landed in #11 break our Python 2 implementation. Do we need to maintain a separate fork of markdown or can we isolate our required functionality in some other way?

Tracking issue for 6a54f06#r35284462 and 6a54f06#r35284484

I think @hornc's #58 fixed the immediate problem.

I've reviewed the integration points and I think it should be straightforward to switch to the standard python-markdown. The only area with any risk is the custom infogami macro extension and it's small enough that it should be straightforward to update for any changes to the Markdown extension API

Relevant modules:
https://github.com/internetarchive/infogami/blob/master/infogami/utils/macro.py#L13
https://github.com/internetarchive/infogami/blob/master/infogami/utils/view.py#L18
https://github.com/internetarchive/openlibrary/blob/master/openlibrary/core/olmarkdown.py

These are the interfaces that I can find to Markdown from other parts of infogami and openlibrary: