Is there any way to change lines directly?

I had to enter < br / > manually to wrap lines.
Is there a simple way to do this?
For example, when the Enter key is pressed, it is automatically replaced by < br / >
Or whether there is an option to automatically convert the newline character to < br / >, which will be transmitted to the markdown decoder?
So it's as easy to use as pure text.

I used Autohotkey to create an automatic replacement function.
Script code:

#IfWinActive ahk_exe Joplin.exe
ENTER::
send,<br/>
Return
#IfWinActive

Better scripts:
#IfWinActive ahk_exe Joplin.exe
ENTER:: ;Enter ---> <br/>
send,<br/>
Return

^ENTER:: ;Ctrl+Enter ---> Enter
Send {Ctrl Up}
Send {Enter}
Return
#IfWinActive