Remove md guide
This commit is contained in:
@@ -1,62 +0,0 @@
|
||||
# Markdown Guide
|
||||
|
||||
This blog uses CommonMark for rendering markdown content. Here's a quick guide to the syntax.
|
||||
|
||||
## Headers
|
||||
|
||||
Use `#` for headers:
|
||||
|
||||
```markdown
|
||||
# H1
|
||||
## H2
|
||||
### H3
|
||||
```
|
||||
|
||||
## Emphasis
|
||||
|
||||
- *Italic* with `*asterisks*`
|
||||
- **Bold** with `**double asterisks**`
|
||||
- ~~Strikethrough~~ with `~~tildes~~`
|
||||
|
||||
## Links and Images
|
||||
|
||||
Links: `[Link text](https://example.com)`
|
||||
|
||||
Images: ``
|
||||
|
||||
## Blockquotes
|
||||
|
||||
> This is a blockquote.
|
||||
> It can span multiple lines.
|
||||
|
||||
## Code
|
||||
|
||||
Inline `code` with backticks.
|
||||
|
||||
Code blocks with triple backticks:
|
||||
|
||||
```python
|
||||
def hello():
|
||||
print("Hello, world!")
|
||||
```
|
||||
|
||||
## Tables
|
||||
|
||||
| Column 1 | Column 2 | Column 3 |
|
||||
|----------|----------|----------|
|
||||
| Data 1 | Data 2 | Data 3 |
|
||||
| More | Data | Here |
|
||||
|
||||
## Task Lists
|
||||
|
||||
- [x] Completed task
|
||||
- [ ] Incomplete task
|
||||
- [ ] Another task
|
||||
|
||||
## Horizontal Rule
|
||||
|
||||
Use three or more hyphens:
|
||||
|
||||
---
|
||||
|
||||
That's the basics of Markdown!
|
||||
@@ -1,8 +1,11 @@
|
||||
-- Prevent cargo compiler from being loaded
|
||||
vim.g.current_compiler = 'custom'
|
||||
|
||||
-- Load persistent configuration from .workspace.lua
|
||||
local ws_file = "./.nvim.workspace.lua"
|
||||
local loaded, workspace = pcall(dofile, ws_file)
|
||||
if not loaded then
|
||||
workspace = { args = { }, build_type = "debug", binary = "blog-server" }
|
||||
workspace = { args = {}, build_type = "debug", binary = "blog-server" }
|
||||
end
|
||||
|
||||
local build_folder
|
||||
@@ -16,8 +19,10 @@ local function updateBuildEnv()
|
||||
|
||||
-- The run (F6) arguments
|
||||
vim.opt.makeprg = "cargo build"
|
||||
vim.g.cargo_makeprg_params = 'build'
|
||||
if workspace.build_type == "release" then
|
||||
vim.opt.makeprg = vim.opt.makeprg .. " --release"
|
||||
vim.g.cargo_makeprg_params = vim.g.cargo_makeprg_params .. " --release"
|
||||
end
|
||||
|
||||
-- Rust compiler error format
|
||||
@@ -37,6 +42,14 @@ end
|
||||
|
||||
updateBuildEnv()
|
||||
|
||||
-- Prevent Vim's built-in rust ftplugin from loading the cargo compiler
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "rust",
|
||||
callback = function()
|
||||
vim.b.current_compiler = 'custom'
|
||||
end,
|
||||
})
|
||||
|
||||
local function writeWorkspace()
|
||||
-- A very minimal serializer for workspace configuration
|
||||
local s = { l = "", ls = {}, i = "" }
|
||||
@@ -107,7 +120,7 @@ vim.api.nvim_create_user_command("Args", function(a) updateArgs(a.fargs) end,
|
||||
{ nargs = '*', desc = "Update run/debug arguments" })
|
||||
|
||||
if dap_ok then
|
||||
local lldb_init = { }
|
||||
local lldb_init = {}
|
||||
dap_configs = {
|
||||
{
|
||||
name = 'test all',
|
||||
|
||||
@@ -8,7 +8,9 @@ use std::path::PathBuf;
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Post {
|
||||
pub name: String,
|
||||
#[allow(dead_code)]
|
||||
pub filename: String,
|
||||
#[allow(dead_code)]
|
||||
pub markdown_content: String,
|
||||
pub html_content: String,
|
||||
pub created_at: DateTime<Utc>,
|
||||
|
||||
Reference in New Issue
Block a user