Medium

부분 유료
Verified
분류별 Nishu Jain | 업데이트됨 24 दिन पहले | Data
인기

9.8 / 10

지연 시간

731ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

Markdown is not correct

Rapid account: Ethanol 48
Ethanol48
6 महीने पहले

The markdown content is not correctly formated,

In the articles that I tested the newlines were not represented

example id -> 5e41307c97a2

response:

{
  "markdown": "# Uniswap v4, What's new?\n\n![Photo by [Paul Bill](https://unsplash.com/@hoffman11?utm_source=medium&utm_medium=referral) on [Unsplash](https://unsplash.com?utm_source=medium&utm_medium=referral)](https://miro.medium.com/0*YwKmtuNmHrw5FVVU)\n\nIn this article, we will delve into the highly anticipated update of Uniswap, the leading decentralized finance (DeFi) protocol on the Ethereum blockchain. ? Uniswap v4, brings forth a range of significant changes that enhance customizability, gas efficiency, and overall user experience. With these ..."
}

What it should be: (not exactly it was obtained in the documentations)

{
  "markdown": "# Article title\n## Article Subtitle\nArticle **Content** with lot of _markups_ ....\n![Images Alt](Image URL)\n"
}

The example in the documentation has breaking line, but the API doesn’t

Rapid account: Nishujain 199719 Vg Ifu FH Zx VZ
nishujain199719-vgIfuFHZxVZ Commented 6 महीने पहले

Hey Ethanol48,

We convert page seperators (represented by 3 dots on Medium), to breaking lines in Markdown format (represented by 3 hyphens).

In the documentation example, we used this following article: https://pub.towardsai.net/why-its-super-hard-to-be-an-ml-researcher-or-developer-67fa62fc1971

If you’ll open this Medium story on your browser, you’ll see a page separator just below the cover image, which in turn converted into breaking lines (3 hyphens) in markdown format.

In the articles that you mentioned (5e41307c97a2), there are no page separators in the entire story. Hence, you’re not seeing breaking lines anywhere in the markdown format.

I hope this clarifies your doubt. If you have any more questions, please feel free to email me at nishu@mediumapi.com

Thank and regards
Nishu

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입