Welcome to Codidact Meta!
Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.
Post History
Here's the list of supported tags and attributes, pulled straight from the current code: self.tags = %w[a p span b i em strong hr h1 h2 h3 h4 h5 h6 blockquote img strike del code p...
Answer
#2: Post edited
- Here's the list of supported tags and attributes, pulled straight from the current code:
- ```ruby
- self.tags = %w[a p span b i em strong hr h1 h2 h3 h4 h5 h6 blockquote img strike
- del code pre br ul ol li sup sub section details summary ins table
- thead tbody tr th td s]
- self.attributes = %w[id class href title src height width alt rowspan colspan lang
- start dir]
- ```
- To a careful reader, that might imply there are no restrictions on _what_ classes you can use, because the `class` attribute is blanket allowed.
As you've noticed, that means you can make use of the Codidact & [Co-Design](https://design.codidact.org) CSS and do some nifty things in your posts.- With great power comes great responsibility - while it's a very nice thing to have, it's very powerful and can be misused. If that starts happening we'll have to remove it.
- Here's the list of supported tags and attributes, pulled straight from the current code:
- ```ruby
- self.tags = %w[a p span b i em strong hr h1 h2 h3 h4 h5 h6 blockquote img strike
- del code pre br ul ol li sup sub section details summary ins table
- thead tbody tr th td s]
- self.attributes = %w[id class href title src height width alt rowspan colspan lang
- start dir]
- ```
- To a careful reader, that might imply there are no restrictions on _what_ classes you can use, because the `class` attribute is blanket allowed.
- As you've noticed, that means you can make use of the Codidact & [Co-Design](https://design.codidact.org) CSS and do some nifty things in your posts. <i class="fas fa-glass-cheers"></i>
- With great power comes great responsibility - while it's a very nice thing to have, it's very powerful and can be misused. If that starts happening we'll have to remove it.
#1: Initial revision
Here's the list of supported tags and attributes, pulled straight from the current code: ```ruby self.tags = %w[a p span b i em strong hr h1 h2 h3 h4 h5 h6 blockquote img strike del code pre br ul ol li sup sub section details summary ins table thead tbody tr th td s] self.attributes = %w[id class href title src height width alt rowspan colspan lang start dir] ``` To a careful reader, that might imply there are no restrictions on _what_ classes you can use, because the `class` attribute is blanket allowed. As you've noticed, that means you can make use of the Codidact & [Co-Design](https://design.codidact.org) CSS and do some nifty things in your posts. With great power comes great responsibility - while it's a very nice thing to have, it's very powerful and can be misused. If that starts happening we'll have to remove it.