xyandy / github-issue-blog

https://github-issue-blog-cyan.vercel.app
0 stars 0 forks source link

Test Markdown #7

Open xyandy opened 1 month ago

xyandy commented 1 month ago

Welcome to My Blog

This is a sample blog post written in Markdown for test

Features

Code Example

import React from 'react'
import ReactDOM from 'react-dom'
import Markdown from 'react-markdown'
import rehypeHighlight from 'rehype-highlight'

const markdown = `
# Your markdown here
`

ReactDOM.render(
  <Markdown rehypePlugins={[rehypeHighlight]}>{markdown}</Markdown>,
  document.querySelector('#content')
)

For GFM, you can also use a plugin: It adds support for GitHub-specific extensions to the language: tables, strikethrough, tasklists, and literal URLs.

These features do not work by default. 👆 Use the toggle above to add the plugin.

列1 列2 列3
数据1 数据2 数据3
数据4 数据5 数据6
数据4 数据5 数据6
数据4 数据5 数据6

strikethrough

https://example.com

HTML in markdown

⚠️ HTML in markdown is quite unsafe, but if you want to support it, you can use 'rehype-raw'. You should probably combine it with 'rehype-sanitize'.

Use the toggle above to add the plugin.

image

xyandy commented 1 month ago
import request
print("Hello Test")

def get_repo(user: Github, repo: str):
    return user.get_repo(repo)