Skip to content

JATS: Footnote support #880

@rgieseke

Description

@rgieseke

Probably related to issue #144

How would one add support to read a footnote as an inline element as part of a paragraph?
Right now it's rendered as another paragraph next to the paragraph which has the annotated word as the last word.

E.g. JATS:

    <p id="p1">Text<fn id="idm6"><p id="footnote1">Footy note about Text.</p></fn> begins and ends.</p>

To JSON:

"content": [
    {
      "type": "Paragraph",
      "id": "p1",
      "content": [
        "Text"
      ]
    },
    {
      "type": "Paragraph",
      "id": "footnote1",
      "content": [
        "Footy note about Text."
      ]
    },
    {
      "type": "Paragraph",
      "content": [
        " begins and ends."
      ]
    }

It should be inline like a mark i think:

  {
      "type": "Paragraph",
      "id": "p2",
      "content": [
        "Normal Text, ",
        {
          "type": "Strong",
          "content": [
            "bold"
          ]
        },
        " or not."
      ]
    }

I played around with adding a decodeFootnote function but don't really know what the best approach would be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions