blizzard4591 / openMittsu

An open source implementation and desktop client of the Threema Messenger App.
Other
175 stars 23 forks source link

Markup Support #79

Open dbrgn opened 3 years ago

dbrgn commented 3 years ago

As mentioned in #9: Threema has switched away from pure regexes towards a proper parser.

The JavaScript version is published here: https://github.com/threema-ch/threema-markup Maybe that could be adapted, it's relatively simple and contains a big test suite.

blizzard4591 commented 3 years ago

Yes, I looked at that already and it would make sense to adapt. My plan would be to transpile it to C++, as a manual adaption makes no sense in my eyes, tracking changes just does not scale or make sense manually. Sadly, the TypeScript to C++ transpiler I found can not handle the used features: https://github.com/ASDAlexander77/TypeScript2Cxx/issues/7

I am open to other ideas, but the generated workload needs to be in-line with this being a one-person show.