32 lines
675 B
Markdown
32 lines
675 B
Markdown
# 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();
|
|
}
|
|
}
|
|
```
|