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

Module libmedium::post

source ·

Structs

ListState 🔒
Markup 🔒

Enums

Functions

\ No newline at end of file +libmedium::post - Rust

Module libmedium::post

source ·

Structs

ListState 🔒
Markup 🔒

Enums

Functions

\ 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()
         };