Skip to content

Commit d6a1f39

Browse files
authored
Merge pull request #524 from phpDocumentor/bugfix/separator
[BUGFIX] make horizontal rules work in document body
2 parents 2b9500b + 85ab0ee commit d6a1f39

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

packages/guides-restructured-text/resources/config/guides-restructured-text.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@
229229
->tag('phpdoc.guides.parser.rst.body_element', ['priority' => FieldListRule::PRIORITY])
230230
->set(ParagraphRule::class)
231231
->tag('phpdoc.guides.parser.rst.body_element', ['priority' => ParagraphRule::PRIORITY])
232+
->set(TransitionRule::class)
233+
->tag('phpdoc.guides.parser.rst.body_element', ['priority' => TransitionRule::PRIORITY])
232234
->set(InlineMarkupRule::class)
233235
->set(TitleRule::class)
234236

@@ -287,8 +289,6 @@
287289
])
288290
->tag('phpdoc.guides.parser.rst.fieldlist')
289291

290-
->set(TransitionRule::class)
291-
->tag('phpdoc.guides.parser.rst.structural_element', ['priority' => TransitionRule::PRIORITY])
292292
->set(SectionRule::class)
293293
->tag('phpdoc.guides.parser.rst.structural_element', ['priority' => SectionRule::PRIORITY])
294294

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>Some Document</title>
5+
6+
</head>
7+
<body>
8+
<div class="section" id="some-document">
9+
<h1>Some Document</h1>
10+
11+
<p>Testing separator</p>
12+
<hr />
13+
14+
<p>Hey!</p>
15+
</div>
16+
17+
</body>
18+
</html>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
Some Document
3+
=============
4+
5+
Testing separator
6+
7+
-------
8+
9+
Hey!

0 commit comments

Comments
 (0)