Save and restore stack of inline decorations around environments, \item, etc.

Change-Id: I4f29b1df5b0db01dbbdbc3139f9c97ad53b4f3ee