nextcloud / forms

📝 Simple form & survey app for Nextcloud
https://apps.nextcloud.com/apps/forms
GNU Affero General Public License v3.0
316 stars 97 forks source link

Add support of multi-columns descriptions #2201

Open Koc opened 3 months ago

Koc commented 3 months ago

Now we can use multi-columns descriptions thankful to markdown-it-container plugin

::::: columns
:::: column-double
first column has double relative width (ie 2/3 of total width) 
::::
:::: column-single
second column has single relative width (ie 1/3 of total width)
::::
:::::
:mag: Preview ![image](https://github.com/nextcloud/forms/assets/191082/74d44ed8-bd27-4141-aadb-c6d243bc5451) ![image](https://github.com/nextcloud/forms/assets/191082/71ee0faa-9fda-470d-9f3d-35339ba045ec)
susnux commented 3 months ago

I am not sure about this, I do not see a good use case and will make thing more complex. I would probably stick with CommonMark to keep it simple.

Opinions @jancborchardt @Chartman123 ?

Chartman123 commented 3 months ago

Yeah same for me... another dependency for only a really small benefit.

Koc commented 3 months ago

for our use case It has sense for students quizzes, e.g. we have some image/schema on the left column and a question on the right column

Koc commented 3 months ago

Updates:

Chartman123 commented 3 months ago

@Koc thanks for the updated description with the preview... How would this work together with your other PR to implement Text as a Markdown editor? As far as I could see Text doesn't support multi-columns.

Koc commented 3 months ago

@Chartman123 I've plan to close #2164 because it requires much more work than I expected for adding images support. So there are no any conflicts with this 2 PRs anymore :smiley: