<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Paint markdown table cells or rows in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/paint-markdown-table-cells-or-rows/m-p/554964#M2557</link>
    <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/226640"&gt;@Josep&lt;/a&gt;&amp;nbsp;I'd suggest using HTML instead for greater flexibility. Simple example that would work for a General Purpose Dynamic Section in the layout:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;html = """&lt;BR /&gt;&amp;lt;table border="1x solid black"&amp;gt;&lt;BR /&gt;  &amp;lt;tr&amp;gt;&lt;BR /&gt;    &amp;lt;th&amp;gt;Col 1&amp;lt;/th&amp;gt;&lt;BR /&gt;    &amp;lt;th&amp;gt;Col 2&amp;lt;/th&amp;gt;&lt;BR /&gt;  &amp;lt;/tr&amp;gt;&lt;BR /&gt;  &amp;lt;tr&amp;gt;&lt;BR /&gt;    &amp;lt;td style="background-color:#FF1744"&amp;gt;1a&amp;lt;/td&amp;gt;&lt;BR /&gt;    &amp;lt;td&amp;gt;2a&amp;lt;/td&amp;gt;&lt;BR /&gt;  &amp;lt;/tr&amp;gt;&lt;BR /&gt;  &amp;lt;tr&amp;gt;&lt;BR /&gt;    &amp;lt;td style="background-color:#00CD33"&amp;gt;1b&amp;lt;/td&amp;gt;&lt;BR /&gt;    &amp;lt;td&amp;gt;2b&amp;lt;/td&amp;gt;&lt;BR /&gt;  &amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;"""&lt;BR /&gt;return_results({&lt;BR /&gt;    'ContentsFormat': EntryFormat.HTML,&lt;BR /&gt;    'Type': EntryType.NOTE,&lt;BR /&gt;    'Contents': html&lt;BR /&gt;})&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Aug 2023 01:19:56 GMT</pubDate>
    <dc:creator>asawyer</dc:creator>
    <dc:date>2023-08-24T01:19:56Z</dc:date>
    <item>
      <title>Paint markdown table cells or rows</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/paint-markdown-table-cells-or-rows/m-p/554504#M2533</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We use markdown tables to show the analysts' incident data. We use them for manual tasks in details as in layouts. We'd like to paint those cells where the data shown is critical. For example, on a markdown table where some hashes are detonated, we'd like to paint the rows or cells where hashes are malicious.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 12:01:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/paint-markdown-table-cells-or-rows/m-p/554504#M2533</guid>
      <dc:creator>Josep</dc:creator>
      <dc:date>2023-08-21T12:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Paint markdown table cells or rows</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/paint-markdown-table-cells-or-rows/m-p/554565#M2536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/226640"&gt;@Josep&lt;/a&gt;&amp;nbsp;– Background color can be added in markdown using the following syntax:&lt;/P&gt;
&lt;P&gt;{{background:#&amp;lt;HEX_COLOR&amp;gt;}}(&amp;lt;TEXT&amp;gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;E.g. for red:&lt;/P&gt;
&lt;P&gt;{{background:#fd0800}}(&amp;lt;TEXT&amp;gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you can also use HTML for your General Purpose Dynamic Section tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For markdown, use the markdown editor on the XSOAR CLI to see what other formatting options are available.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 23:41:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/paint-markdown-table-cells-or-rows/m-p/554565#M2536</guid>
      <dc:creator>asawyer</dc:creator>
      <dc:date>2023-08-21T23:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Paint markdown table cells or rows</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/paint-markdown-table-cells-or-rows/m-p/554692#M2542</link>
      <description>&lt;P&gt;it worked, however when it's printed it doesn't fill the cell:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Josep_0-1692709836717.png" style="width: 191px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/52987i94D344E6886ADE03/image-dimensions/191x107/is-moderation-mode/true?v=v2" width="191" height="107" role="button" title="Josep_0-1692709836717.png" alt="Josep_0-1692709836717.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 13:11:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/paint-markdown-table-cells-or-rows/m-p/554692#M2542</guid>
      <dc:creator>Josep</dc:creator>
      <dc:date>2023-08-22T13:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Paint markdown table cells or rows</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/paint-markdown-table-cells-or-rows/m-p/554964#M2557</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/226640"&gt;@Josep&lt;/a&gt;&amp;nbsp;I'd suggest using HTML instead for greater flexibility. Simple example that would work for a General Purpose Dynamic Section in the layout:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;html = """&lt;BR /&gt;&amp;lt;table border="1x solid black"&amp;gt;&lt;BR /&gt;  &amp;lt;tr&amp;gt;&lt;BR /&gt;    &amp;lt;th&amp;gt;Col 1&amp;lt;/th&amp;gt;&lt;BR /&gt;    &amp;lt;th&amp;gt;Col 2&amp;lt;/th&amp;gt;&lt;BR /&gt;  &amp;lt;/tr&amp;gt;&lt;BR /&gt;  &amp;lt;tr&amp;gt;&lt;BR /&gt;    &amp;lt;td style="background-color:#FF1744"&amp;gt;1a&amp;lt;/td&amp;gt;&lt;BR /&gt;    &amp;lt;td&amp;gt;2a&amp;lt;/td&amp;gt;&lt;BR /&gt;  &amp;lt;/tr&amp;gt;&lt;BR /&gt;  &amp;lt;tr&amp;gt;&lt;BR /&gt;    &amp;lt;td style="background-color:#00CD33"&amp;gt;1b&amp;lt;/td&amp;gt;&lt;BR /&gt;    &amp;lt;td&amp;gt;2b&amp;lt;/td&amp;gt;&lt;BR /&gt;  &amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;"""&lt;BR /&gt;return_results({&lt;BR /&gt;    'ContentsFormat': EntryFormat.HTML,&lt;BR /&gt;    'Type': EntryType.NOTE,&lt;BR /&gt;    'Contents': html&lt;BR /&gt;})&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Aug 2023 01:19:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/paint-markdown-table-cells-or-rows/m-p/554964#M2557</guid>
      <dc:creator>asawyer</dc:creator>
      <dc:date>2023-08-24T01:19:56Z</dc:date>
    </item>
  </channel>
</rss>

