Package: pango
Function pango:parse-markup
Lambda Listpango:parse-markup (markup marker) ArgumentsReturn Value    text -- a string for the text with tags stripped  attrlist -- a pango:attr-list instance char -- a character for the accelerator char Details        
    Parses marked-up text to create a plain-text string and an attribute list.    If marker is nonzero, the given character will mark the character  following it as an accelerator. For example, marker might be an
  ampersand or underscore. All characters marked as an accelerator will receive  a :low attribute, and the first character so marked  will be returned in char. Two marker characters following each  other produce a single literal marker character. If any error happens, nil is returned. Examples
(multiple-value-bind (text attrlist char)
    (pango:parse-markup "<b>_Text</b>" #\_)
  (values text
          (pango:attr-list-to-string attrlist)
          char))
=> "Text"
   "0 1 underline low
    0 4 weight bold"
   #\T     | See also | 
2025-08-24