Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Inline twiter media inside the article #44

Merged
merged 1 commit into from
Apr 30, 2022
Merged

Inline twiter media inside the article #44

merged 1 commit into from
Apr 30, 2022

Conversation

miry
Copy link
Owner

@miry miry commented Apr 30, 2022

Convert iframe content to sample blockquote:

Example

Original article: Testing Microservices, the sane way

Rendered:

> Yep! The whole point of microservices is to enable teams to develop, deploy and scale independently. Yet when it comes to testing, we insist on testing *everything* together by spinning up *identical* environments, contradicting the mainspring of why we even do microservices. https://t.co/Z9tzeOkIvQ
> <p>&#x200a;&mdash;&#x200a;<a href="https://twitter.com/copyconstruct/status/941461955386122240">@copyconstruct</a></p>

image

Implementation

Iframe has meta information with all required data. It allows to not send extra request to Twitter. Parsed content with Regexp. There is more stable way to do with HTML parser. Created tune issue in #43.

@miry miry self-assigned this Apr 30, 2022
@miry miry added the Feature label Apr 30, 2022
@miry miry added this to In progress in Medup Tasks via automation Apr 30, 2022
@miry miry marked this pull request as ready for review April 30, 2022 11:23
Parse iframe content and put messages inside article.
@miry miry changed the title Inline twiiter media inside the article Inline twiter media inside the article Apr 30, 2022
@miry miry merged commit 97d0703 into master Apr 30, 2022
@miry miry deleted the twitter-inline branch April 30, 2022 11:27
Medup Tasks automation moved this from In progress to 2022 Completed Apr 30, 2022
@miry miry mentioned this pull request Apr 30, 2022
4 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Medup Tasks
  
2022 Completed
Development

Successfully merging this pull request may close these issues.

None yet

1 participant