added kakscript to index
This commit is contained in:
parent
a6915f69bd
commit
7be4a24ed9
1 changed files with 18 additions and 0 deletions
|
@ -3,6 +3,9 @@ title: My First Post
|
||||||
---
|
---
|
||||||
|
|
||||||
- This post has some content. I changed it.
|
- This post has some content. I changed it.
|
||||||
|
- I've just added a second bullet!
|
||||||
|
|
||||||
|
## Some Python Code
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def md_to_html(
|
def md_to_html(
|
||||||
|
@ -23,3 +26,18 @@ def md_to_html(
|
||||||
)
|
)
|
||||||
return renderer.render(ast)
|
return renderer.render(ast)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Kakoune Script?!
|
||||||
|
|
||||||
|
```kak
|
||||||
|
declare-option -hidden bool on_server %sh{
|
||||||
|
if [ -z "$KAK_ON_SERVER" ]; then
|
||||||
|
printf 'false'
|
||||||
|
else
|
||||||
|
printf 'true'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command -override true nop
|
||||||
|
define-command -override false fail
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue