Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Markdown function in the Agent Script is NOT working

    Posted 07-02-2020 18:42
    Edited by Charles Duan 07-02-2020 18:43
    Hello,

    I found that the Markdown function in the Agent Script is not working for some scenarios.

    Like the code below

    <details>
    <summary>Click to expand!</summary>

    Some Content Here
    </details>

    It should be viewed like this

    ▶ Click to expand!

    and after you click on it, it expands like this

    ▼ Click to expand!
         Some Content Here

    However, in the Genesys Cloud, it is not working and I found it is because of <p> </p> automatically generated in the HTML

    Genesys Cloud Markdown code:

    Genesys Cloud Preview:

    HTML codes:

    Please anyone can fix this problem?

    Regards,

    Charles

    #Unsure/Other

    ------------------------------
    Charles Duan
    CVT (Global) Pty Ltd
    ------------------------------


  • 2.  RE: Markdown function in the Agent Script is NOT working

    Posted 07-07-2020 01:20
    While this looks cool and useful, I fear that Genesys did not exactly build in all the Markdown Syntax there is and they have a very different format than the standard out there.  I tried many things, but got very different results.  The sites they reference don't have the Details/Summary examples you have.  I would say open a ticket and see if you can find ANYONE that has even heard of this much less used it at Genesys.  I'll keep playing and see what I get.

    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    robertwc@avtex.com
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Markdown function in the Agent Script is NOT working

    GENESYS
    Posted 07-08-2020 09:01
    Hi Charles,

    The reason this is not working is because with the markdown component we do not process html at all. The markdown component sees this html and converts to text. We at this time do not support any form of html going into the markdown component because it opens the door for security issues. We will look to update the documentation to say that html is not supported in the markdown component.

    Thanks,

    ------------------------------
    joshua frederick
    Genesys - Employees
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources