-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always generate markdown in addition of plain text documentation and let user choose which one to show through a toggle box in the report. #3
Comments
I've implemented a first support for markdown in the Instead of simply rendering documentation through marked.js, I first escape it so content which lokks like html tag is not interpreted. I did this choice because It seems to me very unlikely that someone uses HTML markup in Archi other than for really showing some example of html (and not to have it interpreted in some ways). I also configured marked.js to render newline as I tested it with my own models and result is really good 99% of the time. So this is going to become the default but of course should be an option. I see two ways to make it an option:
I prefer the second way of doing it because it is very likely that it will works for 99% of views, but only for some of them people will want to see the original text. In this case, it would be bad to normal documentation for all the other views. My feeling is that we should have this behaviour and options:
|
I prefer this one too. Will test... |
Done in |
Nice work. I'll do more testing... :-) |
The good thing is that I've added a "preferences" dialog so I can use it for other purposes if needed. BTW, I'm using some part of https://picnicss.com. This is a simple, yes powerful, CSS library using only CSS. I use it for tables and model dialog. |
I did some basic MD testing, and it works well. :-) I like the way that changing the MD preference updates in real time. Now that we can set the text control font for the Documentation field in Archi to a fixed-width font it makes creating MD tables possible. ;-) |
Thank you for testing. I've published a new release. |
Got it. Works well. :-) |
See:
The text was updated successfully, but these errors were encountered: