Skip to content

Commit

Permalink
FormatOptions: added lineIdPrefix. API change.
Browse files Browse the repository at this point in the history
This is needed because a web page may contain several
code samples, and we need to make sure that the ids on
lines are unique.

See jgm/pandoc#4031.
  • Loading branch information
jgm committed Nov 2, 2017
1 parent 9355335 commit d06ff51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Skylighting/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ data FormatOptions = FormatOptions{
, titleAttributes :: Bool -- ^ Html titles with token types
, codeClasses :: [Text] -- ^ Additional classes for Html code tag
, containerClasses :: [Text] -- ^ Additional classes for Html container tag
, lineIdPrefix :: Text -- ^ Prefix for id attributes on lines
} deriving (Show, Read, Eq, Ord, Data, Typeable, Generic)

instance Binary FormatOptions
Expand All @@ -383,4 +384,5 @@ defaultFormatOpts = FormatOptions{
, titleAttributes = False
, codeClasses = []
, containerClasses = []
, lineIdPrefix = ""
}

0 comments on commit d06ff51

Please sign in to comment.