diff --git a/zip-0317.html b/zip-0317.html
index acbb8520f..e0f034033 100644
--- a/zip-0317.html
+++ b/zip-0317.html
@@ -126,59 +126,23 @@
conventional\_fee &=& marginal\_fee \cdot \mathsf{max}(grace\_actions, logical\_actions)
\end{array}\)
The inputs to this formula are taken from transaction fields defined in the Zcash protocol specification :
-
-
-
- Input |
- Units |
- Description |
-
-
-
-
-
- \(tx\_in\_total\_size\)
- |
- bytes |
- total size in bytes of the tx_in field |
-
-
-
- \(tx\_out\_total\_size\)
- |
- bytes |
- total size in bytes of the tx_out field |
-
-
-
- \(nJoinSplit\)
- |
- number |
- the number of Sprout JoinSplits |
-
-
-
- \(nSpendsSapling\)
- |
- number |
- the number of Sapling spends |
-
-
-
- \(nOutputsSapling\)
- |
- number |
- the number of Sapling outputs |
-
-
-
- \(nActionsOrchard\)
- |
- number |
- the number of Orchard actions |
-
-
-
+ \(\begin{array}{|l|l|l|l|}
+\hline
+\text{Protocol} & \text{Input} & \text{Units} & \text{Description} \\
+\hline
+\text{Transparent} & tx\_in\_total\_size & \text{bytes} & \text{total size in bytes of the } tx\_in \\
+\hline
+& tx\_out\_total\_size & \text{bytes} & \text{total size in bytes of the } tx\_out \\
+\hline
+\text{Sprout} & nJoinSplit & \text{number} & \text{the number of Sprout JoinSplits} \\
+\hline
+\text{Sapling} & nSpendsSapling & \text{number} & \text{the number of Sapling spends} \\
+\hline
+& nOutputsSapling & \text{number} & \text{the number of Sapling outputs} \\
+\hline
+\text{Orchard} & nActionsOrchard & \text{number} & \text{the number of Orchard actions} \\
+\hline
+\end{array}\)
It is not a consensus requirement that fees follow this formula; however, wallets SHOULD create transactions that pay this fee, in order to reduce information leakage, unless overridden by the user.
Rationale for logical actions
diff --git a/zip-0317.rst b/zip-0317.rst
index b40bdc4e7..48101b068 100644
--- a/zip-0317.rst
+++ b/zip-0317.rst
@@ -123,16 +123,25 @@ calculated in zatoshis per the following formula:
The inputs to this formula are taken from transaction fields defined in the Zcash protocol
specification [#protocol-txnencoding]_:
-============================ ====== ===========================================
-Input Units Description
-============================ ====== ===========================================
-:math:`tx\_in\_total\_size` bytes total size in bytes of the ``tx_in`` field
-:math:`tx\_out\_total\_size` bytes total size in bytes of the ``tx_out`` field
-:math:`nJoinSplit` number the number of Sprout JoinSplits
-:math:`nSpendsSapling` number the number of Sapling spends
-:math:`nOutputsSapling` number the number of Sapling outputs
-:math:`nActionsOrchard` number the number of Orchard actions
-============================ ====== ===========================================
+.. math::
+
+ \begin{array}{|l|l|l|l|}
+ \hline
+ \text{Protocol} & \text{Input} & \text{Units} & \text{Description} \\
+ \hline
+ \text{Transparent} & tx\_in\_total\_size & \text{bytes} & \text{total size in bytes of the } tx\_in \\
+ \hline
+ & tx\_out\_total\_size & \text{bytes} & \text{total size in bytes of the } tx\_out \\
+ \hline
+ \text{Sprout} & nJoinSplit & \text{number} & \text{the number of Sprout JoinSplits} \\
+ \hline
+ \text{Sapling} & nSpendsSapling & \text{number} & \text{the number of Sapling spends} \\
+ \hline
+ & nOutputsSapling & \text{number} & \text{the number of Sapling outputs} \\
+ \hline
+ \text{Orchard} & nActionsOrchard & \text{number} & \text{the number of Orchard actions} \\
+ \hline
+ \end{array}
It is not a consensus requirement that fees follow this formula; however,
wallets SHOULD create transactions that pay this fee, in order to reduce