handle custom card sizes, some paragraph rendering stuff