obsidian-table-checkboxes icon indicating copy to clipboard operation
obsidian-table-checkboxes copied to clipboard

Auto replace does not function correctly

Open AthreyaV opened this issue 9 months ago • 7 comments

Issue

Auto replace does not function correctly

Versions

  • Obsidian v1.8.9
  • obsidian-table-checkboxes release v3.0.0

Expected behavior

Markdown syntax checkbox - [ ] is replaced with html syntax <input type="checkbox" unchecked id="6c4569"> once typed in a table

Actual behavior

Only the brackets of the markdown checkbox are replaced, leaving a dash at the beginning. ie: - [ ] is replaced with -<input type="checkbox" unchecked id="6c4569">

Steps to reproduce

Type the markdown checkbox as instructed by the plugin. The leading dash is not replaced.

Additional information

Sort of a related but separate issue, the replace function does not trigger if "auto-pair brackets" is enabled; when the close bracket is auto filled upon typing the open bracket, it must be deleted and retyped to trigger the html syntax replacement (but the leading dash is left over as described above).

AthreyaV avatar Mar 06 '25 07:03 AthreyaV

Ah damn, I really thought I finally tackled all the auto-replacement issues...

I can't recreate it on my end. Can you tell me what OS & input language you're on? The more specific the better.

0x-DLN avatar Mar 16 '25 12:03 0x-DLN

it doesn't work for me either. i'm on macos (latest). obsidian (latest). checkboxes inside table just keep being "- [ ]" instead of checkbox.

webenadam avatar May 08 '25 04:05 webenadam

@webenadam What input source(s) are you using? This is essentially your keyboard language. You can find it under System Settings -> Keyboard

Image

0x-DLN avatar May 12 '25 19:05 0x-DLN

Thanks @0x-DLN i use english and hebrew, but on both it doesn't work.

Image

webenadam avatar May 13 '25 07:05 webenadam

For me, when I use the "convert all checkboxes in current file to HTML ceckboxes" command, what happens is that the ceckboxes gets replaced by the following text: !!PLACEHOLDER_TO_BE_REPLACED_WITH_CHECKBOX!!

djuret04 avatar Jun 14 '25 22:06 djuret04

For me, when I use the "convert all checkboxes in current file to HTML ceckboxes" command, what happens is that the ceckboxes gets replaced by the following text: !!PLACEHOLDER_TO_BE_REPLACED_WITH_CHECKBOX!!

Same with me

surajgowda avatar Jul 19 '25 03:07 surajgowda

Had a similar problem (!!PLACEHOLDER_TO_BE_REPLACED_WITH_CHECKBOX!!). Do you have a space between the square brackets? Try it in "source mode" view.

BenRoe avatar Oct 17 '25 12:10 BenRoe