Question: how to add an attribute to a table header cell? (<th>) #710
-
Hello. I've tried all sorts of variants of the attributes syntax, but none of them get identified as attributes by the parser. I tried inline:
I tried the block syntax both before after the pipe, because why not:
I tried the alignment syntax just in case:
Can attributes on individual table elements only be added programmatically? This is on 1.6, as we can't yet upgrade to 2.0, by the way. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Try adding a space before the opening | Episode | Episode title | Description {data-table-column-type="long"} | Cupoid challenge theme | Original stream date | I think that should work on both 1.6 and 2.0. |
Beta Was this translation helpful? Give feedback.
-
@colinodell Thanks for getting back to me. Tried it on 1.6.6 and it still just gets output as text in the Any other suggestions I could try? |
Beta Was this translation helpful? Give feedback.
-
I ran a similar test on 1.6.6 and it seemed to work correctly: Do you have any other extensions enabled? If you're open to debugging this, try setting a breakpoint in |
Beta Was this translation helpful? Give feedback.
I ran a similar test on 1.6.6 and it seemed to work correctly:
Do you have any other extensions enabled?
If you're open to debugging this, try setting a breakpoint in
AttributesInlineParser::parse()
to confirm if it's being called and parsing the attribute information.