Include shown attribute in source output

Fix #30

This appears to work. I'm not sure if there's a better way.