alazaro/django-rest-framework — comment on commit 4a60575132b2221e9abca432bbef57611b629a97
File:  line 0
By tomchristie:

As it stands I'd be tempted to just drop that test completely - it's too brittle.

Better option tho might be to use a regex to drop all the tag attributes (id, etc) before we do the compare.

I'd also be okay with having a really dumb test that has both styles hardcoded, and checks that it matches either the old or the new style.

Any of those 3 would do.

On 15 Dec 2011, at 22:51, Marko Tibold wrote:

> I'm not quite sure how to go about supporting both versions because the test would also need to have some knowledge of which markdown version is being used, And this 'knowledge' belongs in the compat module. Perhaps better to just drop support for older versions.
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/alazaro/django-rest-framework/commit/4a60575132b2221e9abca432bbef57611b629a97#commitcomment-799169