apache / arrow

Apache Arrow is the universal columnar format and multi-language toolbox for fast data interchange and in-memory analytics
https://arrow.apache.org/
Apache License 2.0
14.69k stars 3.56k forks source link

[MATLAB] arrow tabular variable name with hyperlink is not displayed correctly #38540

Open leihou6116 opened 1 year ago

leihou6116 commented 1 year ago

Describe the bug, including details regarding any error messages, version, and platform.

When the arrow tabular variable name contains hyperlink, it is displayed as \hLink1\ instead of hLink1.

Note: there is no existing test to cover this. Please add tests for this bug fix.

>> hLink1 = string('<a href="http://www.foo.com">foo</a>');
>> hLink2 = string('<a href="http://www.foo.com">another foo</a>');
>> t = table(["a";"bcd";missing;""],[hLink1;hLink2;hLink1;hLink2],[NaN;1;2;3],'VariableNames',["Description", hLink1, "Result"])

t =

  4×3 table

    Description         foo         Result
    ___________    _____________    ______

     "a"           "foo"             NaN  
     "bcd"         "another foo"       1  
     <missing>     "foo"               2  
     ""            "another foo"       3  

>> arrow.table(t)

ans = 

  Arrow Table with 4 rows and 3 columns:

    Schema:

        Description: String | <strong>foo</strong>: String | Result: Float64

    First Row:

        "a" | "foo" | null

Component(s)

MATLAB

kevingurney commented 1 year ago

The MATLAB Command Window display supports the following markup syntax to display bold, hyperlinked text:

<a style="font-weight: bold">Text</a>

However, given an arbitrary string, it seems like it may be difficult to reliably identify all of the valid open + close <a>...</a> tag pairs and modify them to use style="font-weight: bold".