Gender Equality in Employment Act Article 11

(Ⅰ)Employers shall not discriminate against employees because of their gender or sexual orientation in the case of retirement, discharge, severance and termination.(Ⅱ)Work rules, labor contracts and collective bargaining agreements shall not stipulate or arrange in advance that when employees marry, become pregnant, engages in childbirth or child care activities, they have to sever or leave of absence without payment. Employers also shall not use the above-mentioned factors as excuses for termination.(Ⅲ)Any prescription or arrangement that contravenes the stipulations of the two preceding Paragraph shall be deemed as null and void. The termination of the labor contract shall also be deemed as null and void.
中文原文 性別工作平等法第11條
雇主對受僱者之退休、資遣、離職及解僱,不得因性別或性傾向而有差別待遇。
工作規則、勞動契約或團體協約,不得規定或事先約定受僱者有結婚、懷孕、分娩或育兒之情事時,應行離職或留職停薪;亦不得以其為解僱之理由。
違反前二項規定者,其規定或約定無效;勞動契約之終止不生效力。

English translation for reference only; the Chinese text prevails. Not legal advice.