From d651078c1b4ae77ea7790094344d8271fe661a25 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Fri, 17 Feb 2023 13:19:57 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-libmedium=20from=20=20@=20f?= =?UTF-8?q?c371487fdacb7db61156dd6104661a189f72339=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libmedium/post/fn.apply_markup.html | 2 +- libmedium/post/index.html | 2 +- libmedium/post/struct.Markup.html | 2 +- libmedium/post/struct.PositionMap.html | 4 ++-- src/libmedium/post.rs.html | 14 +++++++++++--- 5 files changed, 16 insertions(+), 8 deletions(-) diff --git a/libmedium/post/fn.apply_markup.html b/libmedium/post/fn.apply_markup.html index ff2d738..919a621 100644 --- a/libmedium/post/fn.apply_markup.html +++ b/libmedium/post/fn.apply_markup.html @@ -1 +1 @@ -apply_markup in libmedium::post - Rust

Function libmedium::post::apply_markup

source ·
pub fn apply_markup<'b>(
    data: &GetPostPost,
    gists: &'b Option<Vec<(String, GistContent)>>
) -> Vec<String>
\ No newline at end of file +apply_markup in libmedium::post - Rust

Function libmedium::post::apply_markup

source ·
pub fn apply_markup<'b>(
    data: &GetPostPost,
    gists: &'b Option<Vec<(String, GistContent)>>
) -> Vec<String>
\ No newline at end of file diff --git a/libmedium/post/index.html b/libmedium/post/index.html index b585901..b74b6f2 100644 --- a/libmedium/post/index.html +++ b/libmedium/post/index.html @@ -1 +1 @@ -libmedium::post - Rust
\ No newline at end of file +libmedium::post - Rust
\ No newline at end of file diff --git a/libmedium/post/struct.Markup.html b/libmedium/post/struct.Markup.html index 674804b..f949ab5 100644 --- a/libmedium/post/struct.Markup.html +++ b/libmedium/post/struct.Markup.html @@ -3,7 +3,7 @@ p: &'a GetPostPostContentBodyModelParagraphs, pos_type: PostitionType, gists: &'b Option<Vec<(String, GistContent)>>, -}

Fields§

§markup: &'a GetPostPostContentBodyModelParagraphsMarkups§p: &'a GetPostPostContentBodyModelParagraphs§pos_type: PostitionType§gists: &'b Option<Vec<(String, GistContent)>>

Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields§

§markup: &'a GetPostPostContentBodyModelParagraphsMarkups§p: &'a GetPostPostContentBodyModelParagraphs§pos_type: PostitionType§gists: &'b Option<Vec<(String, GistContent)>>

Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/libmedium/post/struct.PositionMap.html b/libmedium/post/struct.PositionMap.html index 6bb58f5..0c73891 100644 --- a/libmedium/post/struct.PositionMap.html +++ b/libmedium/post/struct.PositionMap.html @@ -1,7 +1,7 @@ -PositionMap in libmedium::post - Rust

Struct libmedium::post::PositionMap

source ·
struct PositionMap<'a, 'b> {
+PositionMap in libmedium::post - Rust

Struct libmedium::post::PositionMap

source ·
struct PositionMap<'a, 'b> {
     map: HashMap<i64, Vec<Markup<'a, 'b>>>,
     arr: Vec<i64>,
-}

Fields§

§map: HashMap<i64, Vec<Markup<'a, 'b>>>§arr: Vec<i64>

Implementations§

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields§

§map: HashMap<i64, Vec<Markup<'a, 'b>>>§arr: Vec<i64>

Implementations§

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/src/libmedium/post.rs.html b/src/libmedium/post.rs.html index 5f3cbcf..312c2c4 100644 --- a/src/libmedium/post.rs.html +++ b/src/libmedium/post.rs.html @@ -424,6 +424,10 @@ 424 425 426 +427 +428 +429 +430
/*
  * Copyright (C) 2021  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -492,7 +496,7 @@
             "<p>".into()
         } else if p.type_ == "PRE" {
             "<pre>".into()
-        } else if p.type_ == "BQ" {
+        } else if p.type_ == "BQ" || p.type_ == "PQ" {
             "<blockquote>".into()
         } else if p.type_ == "H1" {
             "<h1>".into()
@@ -559,8 +563,10 @@
                 state.in_oli = true;
                 "<ol><li>".into()
             }
+        } else if p.type_ == "MIXTAPE_EMBED" {
+            "<div class='mixtape'><p>".into()
         } else {
-            log::info!("Unknown type");
+            log::info!("Unknown type: {}", p.type_);
             r#"
                 <p class="libmedium__meta">
                     <b>From LibMedium:</b> LibMedium is built by reverse
@@ -594,7 +600,7 @@
             "</p>".into()
         } else if p.type_ == "PRE" {
             "</pre>".into()
-        } else if p.type_ == "BQ" {
+        } else if p.type_ == "BQ" || p.type_ == "PQ" {
             "</blockquote>".into()
         } else if p.type_ == "H1" {
             "</h1>".into()
@@ -629,6 +635,8 @@
             }
         } else if p.type_ == "OLI" || p.type_ == "ULI" {
             "</li>".into()
+        } else if p.type_ == "MIXTAPE_EMBED" {
+            "</p></div>".into()
         } else {
             "</span>".into()
         };