Man reader: Nicer looking "skipped content" report.
Just give the macro name, which users will recognize, rather than the internal token.
This commit is contained in:
parent
574f9250a7
commit
7a3380381c
1 changed files with 3 additions and 1 deletions
|
@ -561,5 +561,7 @@ parseSkipMacro :: PandocMonad m => ManParser m Blocks
|
|||
parseSkipMacro = do
|
||||
pos <- getPosition
|
||||
tok <- mmacroAny
|
||||
report $ SkippedContent (show tok) pos
|
||||
case tok of
|
||||
MMacro mkind _ -> report $ SkippedContent ('.':mkind) pos
|
||||
_ -> return () -- shouldn't happen
|
||||
return mempty
|
||||
|
|
Loading…
Add table
Reference in a new issue