Genomes of higher eukaryotes contain many transposable elements, which often localize within the transcribed regions of active genes. Although intragenic transposable elements can be silenced to form heterochromatin, the impact of intragenic heterochromatin on transcription and RNA processing remains largely unexplored. Here we show using a flowering plant, Arabidopsis, that full-length transcript formation over intragenic heterochromatin depends on a protein named IBM2 (Increase in Bonsai Methylation 2), which has a Bromo-Adjacent Homology domain and an RNA recognition motif. Mutation of ibm2 triggers premature termination of transcripts with 3' RNA processing around intragenic heterochromatin at loci including the H3K9 demethylase gene IBM1. The need for IBM2 is circumvented in variant alleles that lack the heterochromatic domain. Our results reveal a mechanism that masks deleterious effects of intragenic heterochromatin, providing evolutionary sources for genetic and epigenetic variations.