## 事象 以下のような[[Markdown]]がある。 ```markdown - [ ] [hoge](hogehoge) - [x] [hoge](hogehoge) ``` 2行目にカーソルをあてるとこのようになる。 ![[Pasted image 20240715145704.png]] リンクが展開されるのは期待通りだが、その直前に表示されるアイコンやチェックボックスのアイコンがraw textとして展開されない。[[挿入モード]]になれば展開されるが、[[ノーマルモード]]で展開されてほしい。 ![[Pasted image 20240715145828.png|frame]] *挿入モードでの表示* [[render-markdown.nvim]]の設定は以下。 ```lua { "MeanderingProgrammer/markdown.nvim", name = "render-markdown", -- Only needed if you have another plugin named markdown.nvim dependencies = { "nvim-treesitter/nvim-treesitter" }, config = function() require("render-markdown").setup({ markdown_query = [[ (thematic_break) @dash (fenced_code_block) @code [ (list_marker_plus) (list_marker_minus) (list_marker_star) ] @list_marker (task_list_marker_unchecked) @checkbox_unchecked (task_list_marker_checked) @checkbox_checked (block_quote) @quote (pipe_table) @table ]], fat_tables = false, checkbox = { unchecked = { icon = "󰄰 " }, checked = { icon = "󰄳 " }, }, win_options = { conceallevel = { default = 2, rendered = 2, }, concealcursor = { default = "", rendered = "", }, }, }) end, } ``` ## 原因 不明だが、おそらく仕様か制限か何かかと...。[[GitHub]]を確認しても手掛かりはなかった。 ## 解決方法 v5.0.0 以上にバージョンアップする。 > [!right-bubble] ![[minerva-face-right.webp]] > > [!caution] [[ミネルヴァ]](agent)により自動で記述された項目です。 > - [[render-markdown.nvim]] の **v5.0.0 (2024-07-27)** で「Full anti-conceal support」が追加された([コミット 726c85c](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/726c85cb9cc6d7d9c85af6ab093e1ee53b5e3c82))。anti-concealはカーソル行のみ装飾(アイコン・チェックボックス等)を非表示にしてraw textを見せる機能で、本ノートの要望をノーマルモードでも満たす。 - その後も `anti_conceal.ignore` による要素別制御(v7.4.0)、モード別制御などが継続的に拡充されている。設定は `anti_conceal = { enabled = true }`(デフォルト有効)。 - [CHANGELOG](https://github.com/MeanderingProgrammer/render-markdown.nvim/blob/main/CHANGELOG.md)