summaryrefslogtreecommitdiff
path: root/spec/fixtures/lib/kramdown/atlassian_document_format/inline_card.json
blob: 8b7428debc2d13015cab73c7c46e7be9121524e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  "version": 1,
  "type": "doc",
  "content": [
    {
      "type": "paragraph",
      "content": [
        {
          "type": "text",
          "text": "An inline card (url): "
        },
        {
          "type": "inlineCard",
          "attrs": {
            "url": "https://gitlab-jira.atlassian.net/browse/DEMO-1"
          }
        }
      ]
    },
    {
      "type": "paragraph",
      "content": [
        {
          "type": "text",
          "text": "Some prelude text "
        },
        {
          "type": "inlineCard",
          "attrs": {
            "data": {
              "@context": "https://json-ld.org/contexts/person.jsonld",
              "@id": "http://dbpedia.org/resource/John_Lennon",
              "name": "John Lennon",
              "born": "1940-10-09",
              "spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
            }
          }
        },
        {
          "type": "text",
          "text": " some following text"
        }
      ]
    }
  ]
}