Skip to content

Latest commit

 

History

History
356 lines (253 loc) · 6.04 KB

测试文件.md

File metadata and controls

356 lines (253 loc) · 6.04 KB

顶部文本

三级标题

四级标题

五级标题
六级标题

段落

一行最多显示 40 个字。

一二三四五六七八九十,一二三四五六七八九十,一二三四五六七八九十,一二三四五六七八九十,一二三四五六七八九十

行高

@font-face 规则中,你还可以定义 font-weightfont-style 等其他字体描述符。例如,如果你有一种粗体的字体版本,你可以创建另一个 @font-face 规则,其 font-weight 设置为 bold

选中文本时的颜色

选中

表格

在非行内公式或者公式块中 行内公式或者公式块中
上标 X^2^ X^2^ X^2
下标 H2O H ~2 ~ O H_ 2 O
上标和下标 $\sigma_X^2$ \sigma_X^2

列表

有序列表

  1. 有序列表项 1
  2. 有序列表项 2
    1. 嵌套有序列表项 1
    2. 嵌套有序列表项 2
  3. 有序列表项 3

无序列表

  • 无序列表项 1
  • 无序列表项 2
    • 嵌套无序列表项 1
    • 嵌套无序列表项 2
  • 无序列表项 3

任务列表

  • 任务未完成
  • 任务已完成

链接

内联链接

内联链接

inline link

代码上附带的超链接

参考式链接

OpenAI

分割线





代码

内联代码

abcdefghijklmnopqrstuvwxyz

代码上附带的超链接

大纲内联代码

代码块

Angular

CSS

/* 阅读模式 */
:root {
    --color-light: white;
    --monospace: "IBM Plex Mono", "Fira Code", "微软雅黑", monospace;
    --side-bar-bg-color: #fafafa;
}
@include-when-export url(https://fonts.loli.net/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: normal;
    src: local("Open Sans Regular"), local("OpenSans-Regular"), url("./github/open-sans-v17-latin-ext_latin-regular.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@media (prefers-color-scheme: light) {
    color: var(--color-light)
}
@media only screen and (min-width: 1400px) {
    #write {
        max-width: 1024px;
    }
}
html {
    font-size: 16px;
}
/* 注释 */
/* comment */
#write {
    max-width: 860px;
    margin: 0 auto;
    padding: 30px 30px 100px;
}
#write > ul:first-child,
#write > ol:first-child {
    margin-top: 30px;
}
#write pre.md-meta-block {
    margin-top: 0 !important;
}

C++

diff

 import type { UserModule } from './types'
-import generatedRoutes from '~pages'
+import { routes } from 'vue-router/auto/routes'

 import '@unocss/reset/tailwind.css'
 import './styles/main.css'
 import 'uno.css'
     AutoImport({
       imports: [
-        'vue-router',
+        VueRouterAutoImports,
+        {
+           // add any other imports you were relying on
+           'vue-router/auto': ['useLink']
+        },
       ],
     }),

HTML

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
    </head>
    <body>
        <!--注释,comment-->
    </body>
</html>

Java

JavaScript

// 注释,comment
/* 多行注释 */
/**
 * 传入一个对象,判断对象是否为空
 * @param object
 * @returns {boolean}
 */
function isEmpty(object){
    for(let key in obj){
        return false;       // 如果进到循环里面,说明有属性
    }

    return true;
}

JSON

Markdown

PHP

Python

Rust

Sass

TypeScript

declare function nextTick<T = void>(this: T, fn?: (this: T) => void): Promise<void>;
declare namespace Browser {
    const storage: Storage.Static;
}
Record<Keys, ValueType>
type FixedKeys = Record<'key1' | 'key2' | 'key3', number>;

const example: FixedKeys = {
 key1: 1,
 key2: 2,
 key3: 3
};
type ArbitraryKeys = Record<string, number>;

const example: ArbitraryKeys = {
 key1: 1,
 key2: 2,
 key3: 3
};
function createRecord<K extends string>(keys: K[]): Record<K, string> {
 const record: Record<K, string> = {} as Record<K, string>;
 for (const key of keys) {
   record[key] = `Value for ${key}`;
 }
 return record;
}

const keys = ['key1', 'key2', 'key3'] as const;
const example = createRecord(keys);
set(items: Record<string, any>): Promise<void>;

Vue

<script setup lang="ts" >
    import type { DataTableColumns } from 'naive-ui'
    import { computed, h, ref, watch } from 'vue'
    interface DataProps {
        renderKey: string
        renderValue: string
        key: string
        value: string
    }
    const props = defineProps<Props>()

</script>

<template>
	<NModal v-model:show="show" style="width: 90%; max-width: 900px;" preset="card">
    	<NTabs type="segment">
        	<div>
            	<NButton
                     type="primary"
                     size="small"
                     @click="changeShowModal('add')"
            	>
    			</NButton>
    		</div>
    	</NTabs>
    </NModal>
</template>

XML

搜索

普通文本

搜我

代码块里的内容

// Ctrl+F或Ctrl+Shift+F
// 搜索 “codecontent”
// 搜索 “button”

字体

中文

// 注释

英文

Il

abcdefghijklmnopqrstuvwxyz

ABCDEFGHIJKLMNOPQRSTUVWXYZ

等宽字体

abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ