1*1f443476SAndreas Gohr<?php 2*1f443476SAndreas Gohr 3*1f443476SAndreas Gohrnamespace dokuwiki\Parsing\ParserMode; 4*1f443476SAndreas Gohr 5*1f443476SAndreas Gohrclass Subscript extends AbstractFormatting 6*1f443476SAndreas Gohr{ 7*1f443476SAndreas Gohr /** @inheritdoc */ 8*1f443476SAndreas Gohr protected function getModeName(): string 9*1f443476SAndreas Gohr { 10*1f443476SAndreas Gohr return 'subscript'; 11*1f443476SAndreas Gohr } 12*1f443476SAndreas Gohr 13*1f443476SAndreas Gohr /** @inheritdoc */ 14*1f443476SAndreas Gohr protected function getEntryPattern(): string 15*1f443476SAndreas Gohr { 16*1f443476SAndreas Gohr return '<sub>(?=.*</sub>)'; 17*1f443476SAndreas Gohr } 18*1f443476SAndreas Gohr 19*1f443476SAndreas Gohr /** @inheritdoc */ 20*1f443476SAndreas Gohr protected function getExitPattern(): string 21*1f443476SAndreas Gohr { 22*1f443476SAndreas Gohr return '</sub>'; 23*1f443476SAndreas Gohr } 24*1f443476SAndreas Gohr 25*1f443476SAndreas Gohr /** @inheritdoc */ 26*1f443476SAndreas Gohr public function getSort() 27*1f443476SAndreas Gohr { 28*1f443476SAndreas Gohr return 110; 29*1f443476SAndreas Gohr } 30*1f443476SAndreas Gohr} 31