nkh / P5-App-Asciio

Plain ASCII diagram
https://nkh.github.io/P5-App-Asciio/
53 stars 4 forks source link

Refactor Markup mode #102

Closed nkh closed 10 months ago

nkh commented 1 year ago

Integrate the markup mode

92 and #54 are directly related to this ticket

nkh commented 1 year ago

@qindapao

I think it's time we look at how we can streamline the markup mode, there are two tickets named above. I propose you have a look at them too.

55 is also indirectly related. In the passed I used Ditaa to generate png images for presentations, although I prefer SVG now, The one thing that was interesting with Ditaa https://github.com/stathissideris/ditaa is that it could generate different shapes based on markup. https://github.com/christiangoltz/shaape (which I find a bit impressive) and https://github.com/Twinside/asciidiagram do the same thing more or less but all three try to parse the ASCII text and add their own extra codes.

Instead thy should take some JSON describing the objects, the contents of the JSON data should also contain markup information.

Since applications support different types of markup it should be possible to have a mode for each of these, defined separately but they need to be stored in Asciio, and there should be a way to edit that information, you've already created one mode, I think it should be generalized to support more.

the challenges

nkh commented 10 months ago

Partly done in efe69f0b4e89f30366b733ee0fb9320614cf4538