I am quite familiar with Discourse and have searched and read for an hour for a posted solution.
Kind of desperate because my TextExpander subscription renews at midnight and I'm trying to move all my expansions to Keyboard Maestro.
I don't believe those macros work on TextExpander exports, but I could be wrong. They work on a list of lines containing the shortcut and the expansion (or the name, shortcut and expansion).
There is this one:
Though that is from quite a long time ago, I have no idea if it still works.
I would suggest you export your expansions to a csv, and then look at that in BBEdit (or Numbers), and figure out how to change that so that so that it is lines of:
shortcut:expansion
and then use my macro here:
to create the expansions, perhaps dealing with any that don't transfer well.
Thanks, @peternlewis. I did a bunch of reading here and on TidBITS and decided to follow the advice to use tools specific to the task.
Took advantage of the TidBITS discount and bought Typinator, it imported my TextExpander expansions directly. And wow does it do a lot!
So now I have Typinator for simple expansions and a whole new macro tool in Keyboard Maestro. Lots of things to learn and apply to improving my workflow!