Files
John MacFarlane dd07d8002f JATS writer: use <break/> for LineBreak...
in the limited contexts that accept it.

Closes #8344.
2022-10-01 17:46:13 -07:00

1.6 KiB

% pandoc -t jats -s
---
title: |-
  My\
  document
...

# Section\
with line break

Paragraph\
with line break

--------
A    B
---  ---
1\   3
2    4

*1\  5\
2*   6

     7
--------

^D
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20190208//EN"
                  "JATS-archivearticle1.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other">
<front>
<journal-meta>
<journal-id></journal-id>
<journal-title-group>
</journal-title-group>
<issn></issn>
<publisher>
<publisher-name></publisher-name>
</publisher>
</journal-meta>
<article-meta>
<title-group>
<article-title>My<break/>document</article-title>
</title-group>
<permissions>
</permissions>
</article-meta>
</front>
<body>
<sec id="section">
  <title>Section<break/></title>
  <p>with line break</p>
  <p>Paragraph
  with line break</p>
  <table-wrap>
    <table>
      <colgroup>
        <col width="7%" />
        <col width="7%" />
      </colgroup>
      <thead>
        <tr>
          <th align="left">A</th>
          <th align="left">B</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td align="left">1<break/>2</td>
          <td align="left">3 4</td>
        </tr>
        <tr>
          <td align="left"><italic>1
          2</italic></td>
          <td align="left">5<break/>6</td>
        </tr>
        <tr>
          <td align="left"></td>
          <td align="left">7</td>
        </tr>
      </tbody>
    </table>
  </table-wrap>
</sec>
</body>
<back>
</back>
</article>