libmedium icon indicating copy to clipboard operation
libmedium copied to clipboard

[Rendering] Repititions, wrong formatting, etc. tracking issue

Open realaravinth opened this issue 3 years ago • 17 comments

This issue tracks all rendering bugs in libmedium. To report a rendering bug, please comment the URL of article which caused the bug and I'll try to investigate and fix it

realaravinth avatar Jan 05 '22 05:01 realaravinth

https://libmedium.batsense.net/sinhanurag/batch-an-api-to-bundle-multiple-paypal-rest-operations-6af6006e002

realaravinth avatar Jan 05 '22 05:01 realaravinth

https://libmedium.batsense.net/sinhanurag/batch-an-api-to-bundle-multiple-paypal-rest-operations-6af6006e002

ebb5d5175 partially fixes this

The repetition in third paragraph("Earlier this year...") is because of nested formatting. A part of this paragraph is styled as both "EM" and "STRONG". I'll have rewrite rendering routines to accommodate nested formatting rules like this one:


{
  "text": "Earlier this year, Aniket Pol and I started working on a project that would allow for logical bundling of these different REST API operations into one single API call on an as-needed basis. The primary motivation behind this being; cutting down on the number of API calls between external clients (merchants and developers) and PayPal or between different internal services at PayPal.",
  "type": "P",
  "href": null,
  "layout": null,
  "markups": [
    {
      "title": "",
      "type": "A",
      "href": "https://www.linkedin.com/in/aniket-pol/",
      "userId": null,
      "start": 19,
      "end": 29,
      "anchorType": "LINK"
    },
    {
      "title": null,
      "type": "STRONG",
      "href": null,
      "userId": null,
      "start": 173,
      "end": 188,
      "anchorType": null
    },
    {
      "title": null,
      "type": "EM",
      "href": null,
      "userId": null,
      "start": 173,
      "end": 188,
      "anchorType": null
    }
  ],
  "iframe": null,
  "metadata": null
}

realaravinth avatar Jan 05 '22 06:01 realaravinth

Ordered lists: https://libmedium.batsense.net/alex285/cinnamon-workspaces-is-a-showcase-of-terrible-design-a070513ac371

But this article's ordered list includes only a single list item and the other list items are rendered as paragraphs by medium.com(the contain list numbering as part of their content)


fixed(df14f) but ordered list styling in this article is a little weird due to the reason mention above.

realaravinth avatar Jan 05 '22 07:01 realaravinth

GitHub Gists with multiple files where one file is specified ignore the single file and show every file in the gist: https://libmedium.batsense.net/@deepak-v/validations-in-python-using-metaprogramming-and-decorators-advanced-python-ee4d4278a6b3

edwardloveall avatar Jan 15 '22 22:01 edwardloveall

Thanks for the report @edwardloveall :)


fixed(574d14)

realaravinth avatar Jan 16 '22 03:01 realaravinth

I found this one that seems to contain a lot of formatting issues: https://libmedium.batsense.net/fintechexplained/everything-about-python-from-beginner-to-advance-level-227d52ef32d2

PrivacyDevel avatar Dec 04 '22 18:12 PrivacyDevel

Some issues with this one: https://md.vern.cc/@pravse/the-maze-is-in-the-mouse-980c57cfd61a

Surendrajat avatar Feb 17 '23 02:02 Surendrajat

@PrivacyDevel: Firstly, apologies for taking so long to respond. https://github.com/realaravinth/libmedium/commit/fc371487fdacb7db61156dd6104661a189f72339 and https://github.com/realaravinth/libmedium/commit/bedbef97e81d1b744eaca8825e8e67918ba7ac47 fix the formatting issues on the post you linked.

@Surendrajat: Thanks for reporting, https://github.com/realaravinth/libmedium/commit/bedbef97e81d1b744eaca8825e8e67918ba7ac47 fixes the issues in the post you linked. Changes are deployed on the flagship instance, please see here to view the post without the warnings :)

realaravinth avatar Feb 17 '23 13:02 realaravinth

No worries. I'm happy to hear that you got around to fixing it. :)

Unfortunately it seems like the instance libmedium.batsense.net is currently broken. It just shows the template skeleton right now. Would be happy to check it out, once it's working again.

PrivacyDevel avatar Feb 17 '23 14:02 PrivacyDevel

Unfortunately it seems like the instance libmedium.batsense.net is currently broken. It just shows the template skeleton right now. Would be happy to check it out, once it's working again.

Yikes, I pushed a commit that updated the template engine. The tests passed so I assumed everything was fine. It's reverted to the old version now, everything seems to be working :sweat:

realaravinth avatar Feb 17 '23 17:02 realaravinth

Some issues: https://md.vern.cc/pragmatech/orm-for-python-b63cfbc39e7f

beucismis avatar Feb 19 '23 11:02 beucismis

@beucismis this seems to already be working just fine on the official instance https://libmedium.batsense.net/ That's just vern's instance being out of data as far as I can tell.

PrivacyDevel avatar Feb 19 '23 13:02 PrivacyDevel

https://md.vern.cc/@maxdeutsch/how-i-learned-to-draw-realistic-portraits-in-only-30-days-3fb8e8eccee0 Start from 1. Likeness

throwaway-d avatar Feb 23 '23 12:02 throwaway-d

@throwaway-d see my comment above yours. The same applies here.

PrivacyDevel avatar Feb 23 '23 12:02 PrivacyDevel

@throwaway-d see my comment above yours. The same applies here.

Looks like the same applies.

throwaway-d avatar Feb 23 '23 13:02 throwaway-d

https://medium.hostux.net/@nadinCodeHat/rest-api-naming-conventions-and-best-practices-1c4e781eb6a5 start from References:

mortezadadgar avatar Mar 09 '23 10:03 mortezadadgar

@mortezadadgar: thanks for the report, it's fixed on the flagship instance. Please see here

Aside: I'll try to do a release soon, maybe it will help instance admins monitor and update their instances

realaravinth avatar Mar 09 '23 10:03 realaravinth