-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test for restricted mode text-alignment
Makes sure it is properly stripped out, expect when its needed. Closes #180
- Loading branch information
Showing
1 changed file
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
Text-aligment is stripped in restricted mode, but kept with images and such: | ||
setup: | ||
- setRestricted: true | ||
input: | | ||
p<. Left aligned paragraph. | ||
p>. Right aligned paragraph. | ||
p=. Center aligned paragraph. | ||
p<>. Justified paragraph. | ||
!<1.jpg! | ||
!>1.jpg! | ||
!=1.jpg! | ||
expect: | | ||
<p>Left aligned paragraph.</p> | ||
<p>Right aligned paragraph.</p> | ||
<p>Center aligned paragraph.</p> | ||
<p>Justified paragraph.</p> | ||
<p><img align="left" alt="" src="1.jpg" /></p> | ||
<p><img align="right" alt="" src="1.jpg" /></p> | ||
<p><img align="center" alt="" src="1.jpg" /></p> | ||
Aligment uses classes with HTML5: | ||
setup: | ||
- setRestricted: true | ||
doctype: html5 | ||
input: | | ||
p<. Left aligned paragraph. | ||
p>. Right aligned paragraph. | ||
p=. Center aligned paragraph. | ||
p<>. Justified paragraph. | ||
!<1.jpg! | ||
!>1.jpg! | ||
!=1.jpg! | ||
expect: | | ||
<p>Left aligned paragraph.</p> | ||
<p>Right aligned paragraph.</p> | ||
<p>Center aligned paragraph.</p> | ||
<p>Justified paragraph.</p> | ||
<p><img alt="" class="align-left" src="1.jpg" /></p> | ||
<p><img alt="" class="align-right" src="1.jpg" /></p> | ||
<p><img alt="" class="align-center" src="1.jpg" /></p> |