You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
HTML in markdown pages is not rendered (e.g. `content/screenshots.md`).
WARN Raw HTML omitted while rendering "/…/content/posts/2015-04-03-newsletter.md";
see https://gohugo.io/getting-started/configuration-markup/#rendererunsafe
You can suppress this warning by adding the following to your site configuration:
ignoreLogs = ['warning-goldmark-raw-html']
Solution:
We fully control the content and want to render HTML, so enable `unsafe=true`.
Copy file name to clipboardExpand all lines: content/posts/2022-12-31-newsletter.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,11 +56,11 @@ Eye candy first!
56
56
57
57
- [Summary](https://www.vikasraj.dev/blog/lsp-neovim-retrospective) of the history and status of Nvim builtin LSP support.
58
58
- Nvim LSP client now [supports](https://github.com/neovim/neovim/pull/19916) connecting to language servers by TCP.
59
-
```
59
+
```lua
60
60
vim.lsp.start({ name = 'godot', cmd = vim.lsp.rpc.connect('127.0.0.1', 6008) })
61
61
```
62
62
- New [core events for LSP](https://github.com/neovim/neovim/pull/18507): `LspAttach`, `LspDetach`. Example:
63
-
```
63
+
```lua
64
64
vim.api.nvim_create_autocmd('LspAttach', {
65
65
group=yourGroupID,
66
66
callback=function(args)
@@ -70,7 +70,7 @@ Eye candy first!
70
70
}
71
71
```
72
72
-`vim.lsp.get_active_clients()` learned to filter (this will be a standard pattern in the Lua stdlib):
73
-
```
73
+
```lua
74
74
get_active_clients({id=42})
75
75
get_active_clients({bufnr=99})
76
76
get_active_clients({name='tsserver'})
@@ -87,15 +87,15 @@ Eye candy first!
87
87
-
88
88
- Nvim supports [editorconfig](https://editorconfig.org), and [enables it](https://github.com/neovim/neovim/pull/21633) by default. Nvim detects ".editorconfig" files in your project and applies the settings.
89
89
- To opt-out of this feature, add this to your config:
-You [cannow](https://github.com/neovim/neovim/pull/18194) implement ['inccommand'](https://neovim.io/doc/user/options.html#'inccommand') previewforanyuser-definedcommand. Thisbuildsafoundationforlivepreviewof`:normal`, [:global](https://github.com/neovim/neovim/pull/18815), etc.
98
-
```
98
+
```lua
99
99
vim.api.nvim_create_user_command(
100
100
'MyCmd',
101
101
my_cmd,
@@ -145,7 +145,7 @@ Eye candy first!
145
145
## API
146
146
147
147
-[nvim_parse_cmd()](https://github.com/neovim/neovim/pull/18231) provides the foundation for `nvim_cmd([list])` and "user cmd-preview"! And super useful for defining custom cmdline (`:`) behavior.
148
-
```
148
+
```lua
149
149
:echonvim_parse_cmd('.,$g/foo/bar', {})
150
150
{
151
151
'cmd': 'global',
@@ -156,7 +156,7 @@ Eye candy first!
156
156
```
157
157
- Use `nvim_cmd()` to call any Vim legacy command in a structured way, like `system([...])`.
158
158
- Don't need `fnameescape()`: special chars are controlled by the `magic` param.
0 commit comments