🕸📝Fergus Duniho wrote on Sun, Nov 27, 2022 09:22 PM UTC:
I modified the scripts for submitting or editing member-submitted pages to use the format attribute instead of the useshtml attribute. While the latter was binary, the former has four values. The format may now be set to HTML, Markdown, Text, or WYSIWYG. HTML and WYSIWYG both get saved to the database as HTML, though they differ in which mode CkEditor is used with them. Markdown and Text are both saved as plain text in the database, and neither uses CkEditor. They differ in how they are displayed. Markdown is a simpler markup language than HTML, and it gets converted to HTML before being displayed. Text just gets surrounded by PRE tags with no additional conversion.
So far, I have added Format to the database without removing UsesHTML. I will remove it later. In the meantime, please check how well the scripts are working and leave any comments on them here.
I modified the scripts for submitting or editing member-submitted pages to use the format attribute instead of the useshtml attribute. While the latter was binary, the former has four values. The format may now be set to HTML, Markdown, Text, or WYSIWYG. HTML and WYSIWYG both get saved to the database as HTML, though they differ in which mode CkEditor is used with them. Markdown and Text are both saved as plain text in the database, and neither uses CkEditor. They differ in how they are displayed. Markdown is a simpler markup language than HTML, and it gets converted to HTML before being displayed. Text just gets surrounded by PRE tags with no additional conversion.
So far, I have added Format to the database without removing UsesHTML. I will remove it later. In the meantime, please check how well the scripts are working and leave any comments on them here.