Skip to content

JATS: Footnote support #880

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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