-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: respect row- and colspan in inline table (#613)
fixes #610
- Loading branch information
Showing
6 changed files
with
226 additions
and
3 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
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
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
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,95 @@ | ||
<body> | ||
<header></header> | ||
<main> | ||
<div> | ||
<div class="columns"> | ||
<div> | ||
<div data-valign="middle"> | ||
<h4 id="table-4-preparing-to-calculate-our-test-statistic"><strong>Table 4: | ||
Preparing to calculate our test statistic</strong></h4> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td>Type of Movie</td> | ||
<td>Snack</td> | ||
<td>No Snacks</td> | ||
</tr> | ||
<tr> | ||
<td rowspan="2">Action</td> | ||
<td>Actual: 50<br><strong>Expected: 64.58</strong></td> | ||
<td>Actual: 75<br><strong>Expected: 60.42</strong></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p>Difference: 50 – 64.58 = -14.58</p> | ||
<p>Squared Difference: 212.67</p> | ||
<p>Divide by Expected: 212.67/64.58 = 3.29</p> | ||
</td> | ||
<td> | ||
<p>Difference: 75 – 60.42 = 14.58</p> | ||
<p>Squared Difference: 212.67</p> | ||
<p>Divide by Expected: 212.67/60.42 = 3.52</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td rowspan="2">Comedy</td> | ||
<td>Actual: 125<br><strong>Expected 155</strong></td> | ||
<td>Actual 175<br><strong>Expected 145</strong></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p>Difference: 125 – 155 = -30</p> | ||
<p>Squared Difference: 900</p> | ||
<p>Divide by Expected: 900/155 = 5.81</p> | ||
</td> | ||
<td> | ||
<p>Difference: 175 – 145 = 30</p> | ||
<p>Squared Difference: 900</p> | ||
<p>Divide by Expected: 900/145 = 6.21</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td rowspan="2">Family</td> | ||
<td>Actual: 90<br><strong>Expected: 62</strong></td> | ||
<td>Actual: 30<br><strong>Expected 58</strong></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p>Difference: 90 – 62 = 28</p> | ||
<p>Squared Difference: 784</p> | ||
<p>Divide by Expected: 784/62 = 12.65</p> | ||
</td> | ||
<td> | ||
<p>Difference: 30 – 58 = -28</p> | ||
<p>Squared Difference: 784</p> | ||
<p>Divide by Expected: 784/58 = 13.52</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td rowspan="2">Horror</td> | ||
<td>Actual: 45<br><strong>Expected 28.42</strong></td> | ||
<td>Actual: 10<br><strong>Expected 26.58</strong></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p>Difference: 45 – 28.42 = 16.58</p> | ||
<p>Squared Difference: 275.01</p> | ||
<p>Divide by Expected: 275.01/28.42 = 9.68</p> | ||
</td> | ||
<td> | ||
<p>Difference: 10 – 26.58 = -16.58</p> | ||
<p>Squared Difference: 275.01</p> | ||
<p>Divide by Expected: 275.01/26.58 = 10.35</p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<p>Lastly, to get our test statistic, we add the numbers in the final row for | ||
each cell:</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
<footer></footer> | ||
</body> |
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,110 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Table 4: Preparing to calculate our test statistic</title> | ||
<link rel="canonical" href="https://undefined/"> | ||
<meta name="description" content="Lastly, to get our test statistic, we add the numbers in the final row for each cell:"> | ||
<meta property="og:title" content="Table 4: Preparing to calculate our test statistic"> | ||
<meta property="og:description" content="Lastly, to get our test statistic, we add the numbers in the final row for each cell:"> | ||
<meta property="og:url" content="https://undefined/"> | ||
<meta property="og:image" content="https://undefined/default-meta-image.png?width=1200&format=pjpg&optimize=medium"> | ||
<meta property="og:image:secure_url" content="https://undefined/default-meta-image.png?width=1200&format=pjpg&optimize=medium"> | ||
<meta name="twitter:card" content="summary_large_image"> | ||
<meta name="twitter:title" content="Table 4: Preparing to calculate our test statistic"> | ||
<meta name="twitter:description" content="Lastly, to get our test statistic, we add the numbers in the final row for each cell:"> | ||
<meta name="twitter:image" content="https://undefined/default-meta-image.png?width=1200&format=pjpg&optimize=medium"> | ||
</head> | ||
<body> | ||
<header></header> | ||
<main> | ||
<div> | ||
<div class="columns"> | ||
<div> | ||
<div data-valign="middle"> | ||
<h4 id="table-4-preparing-to-calculate-our-test-statistic"><strong>Table 4: Preparing to calculate our test statistic</strong></h4> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td>Type of Movie</td> | ||
<td>Snack</td> | ||
<td>No Snacks</td> | ||
</tr> | ||
<tr> | ||
<td rowspan="2">Action</td> | ||
<td>Actual: 50<br><strong>Expected: 64.58</strong></td> | ||
<td>Actual: 75<br><strong>Expected: 60.42</strong></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p>Difference: 50 – 64.58 = -14.58</p> | ||
<p>Squared Difference: 212.67</p> | ||
<p>Divide by Expected: 212.67/64.58 = 3.29</p> | ||
</td> | ||
<td> | ||
<p>Difference: 75 – 60.42 = 14.58</p> | ||
<p>Squared Difference: 212.67</p> | ||
<p>Divide by Expected: 212.67/60.42 = 3.52</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td rowspan="2">Comedy</td> | ||
<td>Actual: 125<br><strong>Expected 155</strong></td> | ||
<td>Actual 175<br><strong>Expected 145</strong></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p>Difference: 125 – 155 = -30</p> | ||
<p>Squared Difference: 900</p> | ||
<p>Divide by Expected: 900/155 = 5.81</p> | ||
</td> | ||
<td> | ||
<p>Difference: 175 – 145 = 30</p> | ||
<p>Squared Difference: 900</p> | ||
<p>Divide by Expected: 900/145 = 6.21</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td rowspan="2">Family</td> | ||
<td>Actual: 90<br><strong>Expected: 62</strong></td> | ||
<td>Actual: 30<br><strong>Expected 58</strong></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p>Difference: 90 – 62 = 28</p> | ||
<p>Squared Difference: 784</p> | ||
<p>Divide by Expected: 784/62 = 12.65</p> | ||
</td> | ||
<td> | ||
<p>Difference: 30 – 58 = -28</p> | ||
<p>Squared Difference: 784</p> | ||
<p>Divide by Expected: 784/58 = 13.52</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td rowspan="2">Horror</td> | ||
<td>Actual: 45<br><strong>Expected 28.42</strong></td> | ||
<td>Actual: 10<br><strong>Expected 26.58</strong></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p>Difference: 45 – 28.42 = 16.58</p> | ||
<p>Squared Difference: 275.01</p> | ||
<p>Divide by Expected: 275.01/28.42 = 9.68</p> | ||
</td> | ||
<td> | ||
<p>Difference: 10 – 26.58 = -16.58</p> | ||
<p>Squared Difference: 275.01</p> | ||
<p>Divide by Expected: 275.01/26.58 = 10.35</p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<p>Lastly, to get our test statistic, we add the numbers in the final row for each cell:</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
<footer></footer> | ||
</body> | ||
</html> |
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