Fiber-optic endomicroscopy is a minimally invasive tool to probe disease progression with subcellular resolution. In this Letter, we demonstrate a low-cost and compact fluorescence microendoscope capable of line-scanning confocal imaging by synchronizing a digital light projector with a CMOS camera. We present the digital aperture design to enable real-time confocal imaging, and we implement parallel illumination to improve the optical sectioning performance. Furthermore, we show that the confocal microendoscope can enhance visualization of disease-associated features when imaging highly scattering esophageal specimens.