You kinda have the same I have here.
Also I send the AHK code I am using. No need to know any code. Just install the program. copy and past this code into a .txt file and rename it to .ahk and run it. After that just select the text in obsidian and press win + a. Just pay attention because it sometimes acts weird and I am not sure why.
#a::
Clipboard := ""
Loop, {
SendInput, ^c
ClipWait, 0.5
If (ErrorLevel = 0)
Break
}
ToolTip Clipboard data type: %A_EventInfo%
StringReplace, Clipboard, Clipboard, `r`n,%A_Space%, All
Sleep 1000
ToolTip ; Turn off the tip.
SendInput %Clipboard%
return