“Fun”. In the latest MacOS, Apple Notes supports markdown export (https://support.apple.com/en-md/guide/notes/not201900c07/mac), but not through its AppleScript dictionary.
So yes, it seems you do need Pandoc to do html-to-markdown and vice versa.