Markdown 示例

Aug 23, 2024 · 10min

This is a draft post, the content may be incomplete. Please check back later.

This is a magic anchor, the cursor hovers over it to open the card @Clover You | @Anthony Fu

This is an external link Click on it to go to the destination

As you can see, this is an interoperable butto! Try click it!

Markdown syntax guide

Headers

This is a Heading h1

This is a Heading h2

This is a Heading h6

Emphasis

This text will be italic

This will also be italic

This text will be bold

This will also be bold

You can combine them

Lists

Unordered

  • Item 1
  • Item 2
  • Item 2a
  • Item 2b

Ordered

  1. Item 1
  2. Item 2
  3. Item 3
    1. Item 3a
    2. Item 3b

Images

This is an alt text.

You may be using Markdown Live Preview.

Blockquotes

Markdown is a lightweight markup language with plain-text-formatting syntax, created in 2004 by John Gruber with Aaron Swartz.

Markdown is often used to format readme files, for writing messages in online discussion forums, and to create rich text using a plain text editor.

Tables

Left columnsRight columns
left fooright foo
left barright bar
left bazright baz

Blocks of code

let message = 'Hello world';
alert(message);

render code by

@Shiki

use std::str::FromStr;

use proto_demo::user::{self, SigninRequest};
use tokio::runtime::Builder;
use tonic::{metadata::MetadataValue, Request};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
  let mut cli = user::user_client::UseClient::connect("http://[::1]:8081")
  .await?;

  let mut req = Request::new(SigninRequest {
      email: "cloveryou02@gmail.com".to_string(),
      password: "123456".to_string(),
  });

  let metadata = req.metadata_mut();

  let token = MetadataValue::from_str("authentication token")?;
  metadata.append("authentication", token);

  let res = cli.signin(req).await?;
  let res = res.get_ref();

  println!("gRPC response result: {:?}", res);

  Ok(())
}

Inline code

This web site is using markedjs/marked.

::: warning
here be dragons
:::

>

cd ..
CC BY-NC-SA 4.0 2024-PRESENT © Clover You