Skip to content

Commit

Permalink
feat: support "upper-latin" and "lower-lattin" list-style-type CSS props
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamr committed Jun 4, 2021
1 parent ca139c1 commit a0da60d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/render-html/src/elements/defaultMarkers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import CounterStyle, { CounterStyleRenderer } from '@jsamr/counter-style';
import { ComponentType } from 'react';
import decimal from '@jsamr/counter-style/presets/decimal';
import decimalLeadingZero from '@jsamr/counter-style/presets/decimalLeadingZero';
import lowerRoman from '@jsamr/counter-style/presets/lowerRoman';
import lowerAlpha from '@jsamr/counter-style/presets/lowerAlpha';
import lowerGreek from '@jsamr/counter-style/presets/lowerGreek';
import upperAlpha from '@jsamr/counter-style/presets/upperAlpha';
import upperRoman from '@jsamr/counter-style/presets/upperRoman';
import DisclosureClosedSymbolRenderer from './symbolic/DisclosureClosedSymbolRenderer';
import DisclosureOpenSymbolRenderer from './symbolic/DisclosureOpenSymbolRenderer';
import CircleSymbolRenderer from './symbolic/CircleSymbolRenderer';
Expand Down Expand Up @@ -68,8 +70,16 @@ const defaultMarkers: Record<SupportedListStyleType, ListStyleSpec> = {
counterStyleRenderer: lowerGreek
},
'lower-latin': lowerAlphaSpec,
'lower-roman': {
type: 'textual',
counterStyleRenderer: lowerRoman
},
'upper-alpha': upperAlphaSpec,
'upper-latin': upperAlphaSpec,
'upper-roman': {
type: 'textual',
counterStyleRenderer: upperRoman
},
circle: {
counterStyleRenderer: symbolicRenderer,
type: 'cyclic',
Expand Down

0 comments on commit a0da60d

Please sign in to comment.