mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2026-10-21 01:34:22 +00:00
feat: add support for embedded content (iframes & gists)
Signed-off-by: Sphericalkat <amolele@gmail.com>
This commit is contained in:
1 parent
03b74fd90a
commit
7efffe6acd
4 files changed
+53
-2
No files matched your search
@@ -35,6 +35,17 @@ type BodyModel struct {
|
||||
Paragraphs []Paragraph `json:"paragraphs"`
|
||||
}
|
||||
|
||||
type MediaResource struct {
|
||||
Href string `json:"href"`
|
||||
IframeSrc string `json:"iframeSrc"`
|
||||
IframeWidth int64 `json:"iframeWidth"`
|
||||
IframeHeight int64 `json:"iframeHeight"`
|
||||
}
|
||||
|
||||
type Iframe struct {
|
||||
MediaResource MediaResource `json:"mediaResource"`
|
||||
}
|
||||
|
||||
type Paragraph struct {
|
||||
Name string `json:"name"`
|
||||
Text string `json:"text"`
|
||||
@@ -42,7 +53,7 @@ type Paragraph struct {
|
||||
Href interface{} `json:"href"`
|
||||
Layout *string `json:"layout"`
|
||||
Markups []Markup `json:"markups"`
|
||||
Iframe interface{} `json:"iframe"`
|
||||
Iframe *Iframe `json:"iframe"`
|
||||
Metadata *Metadata `json:"metadata"`
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user