Support conversion of issue key to inline card when in color mark

Issue #91 closed
Tara Tjandra created an issue

Request: {color:#112233}text ABC-123 here{color}

Current behaviour:

{
  "type" : "doc",
  "version" : 1,
  "content" : [ {
    "type" : "paragraph",
    "content" : [ {
      "type" : "text",
      "text" : "text ABC-123 here",
      "marks" : [ {
        "type" : "textColor",
        "attrs" : {
          "color" : "#112233"
        }
      } ]
    } ]
  } ]
}

New behaviour:

{
    "version": 1,
    "type": "doc",
    "content": [
        {
            "type": "paragraph",
            "content": [
                {
                    "type": "text",
                    "text": "text ",
                    "marks": [
                        {
                            "type": "textColor",
                            "attrs": {
                                "color": "#112233"
                            }
                        }
                    ]
                },
                {
                    "type": "inlineCard",
                    "attrs": {
                        "url": "http://banana-host.com/ABC-10#icft=ABC-123"
                    }
                },
                {
                    "type": "text",
                    "text": " here",
                    "marks": [
                        {
                            "type": "textColor",
                            "attrs": {
                                "color": "#112233"
                            }
                        }
                    ]
                }
            ]
        }
    ]
}

Comments (2)

  1. Log in to comment