From 5f79a66ed64e9b0cc326e467dcb17239f1596fcc Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 16 Apr 2021 22:13:29 +0200 Subject: JATS writer: reduce unnecessary use of

elements for wrapping The `

` element is used for wrapping in cases were the contents would otherwise not be allowed in a certain context. Unnecessary wrapping is avoided, especially around quotes (`` elements). Closes: #7227 --- test/writer.jats_archiving | 68 +++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 40 deletions(-) (limited to 'test/writer.jats_archiving') diff --git a/test/writer.jats_archiving b/test/writer.jats_archiving index 332b5d3fd..70e15b6b8 100644 --- a/test/writer.jats_archiving +++ b/test/writer.jats_archiving @@ -78,39 +78,31 @@ Gruber’s markdown test suite.

Block Quotes

E-mail style:

-

+ +

This is a block quote. It is pretty short.

+ + +

Code in a block quote:

+ sub status { + print "working"; +} +

A list:

+ + +

item one

+
+ +

item two

+
+
+

Nested block quotes:

-

This is a block quote. It is pretty short.

+

nested

-

-

-

Code in a block quote:

- sub status { - print "working"; -} -

A list:

- - -

item one

-
- -

item two

-
-
-

Nested block quotes:

-

- -

nested

-
-

-

- -

nested

- -

+

nested

-

+

This should not be a block quote: 2 > 1.

And a following paragraph.

@@ -837,12 +829,10 @@ These should not be escaped: \$ \\ \> \[ \{

An e-mail address: nobody@nowhere.net

-

- -

Blockquoted: - http://example.com/

- -

+ +

Blockquoted: + http://example.com/

+

Auto-links should not occur here: <http://example.com/>

or here: <http://example.com/> @@ -866,11 +856,9 @@ These should not be escaped: \$ \\ \> \[ \{ not be a footnote reference, because it contains a space.[^my note] Here is an inline note.3

-

- -

Notes can go in quotes.4

- -

+ +

Notes can go in quotes.4

+

And in list items.5

-- cgit v1.2.3