feat: add notes
This commit is contained in:
31
notes/example.md
Normal file
31
notes/example.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# Test Document
|
||||
This is a text markdown document with even `code`, $LaTeX = \frac{x}{y}$,
|
||||
```js
|
||||
console.log('language codeblocks');
|
||||
```
|
||||
and
|
||||
$$
|
||||
LaTeX~Blocks = \frac{x}{y}
|
||||
$$
|
||||
|
||||
## and ofc
|
||||
a complex syntax example
|
||||
```rust
|
||||
struct Handler<T: surrealdb::Connection> {
|
||||
config: crate::config::Schema,
|
||||
#[allow(dead_code)]
|
||||
db: surrealdb::Surreal<T>,
|
||||
}
|
||||
|
||||
// This is a comment
|
||||
/* And this
|
||||
is multiline
|
||||
*/
|
||||
#[async_trait]
|
||||
impl<T: surrealdb::Connection> EventHandler for Handler<T> {
|
||||
async fn message(&self, ctx: Context, msg: Message) {
|
||||
let maybe_cmds =
|
||||
commands::parser::MsgParser::new(&self.config.prefix.to_string(), &msg.content).parse();
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user