diff --git a/MANUAL.txt b/MANUAL.txt index ed668e73acc3..e19f51b61839 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -581,10 +581,6 @@ header when requesting a document from a URL: identifier `foo` in `subdir/file1.txt` will have its identifier changed to `subdir__file1.txt__foo`. - In addition, a Div with an identifier based on the filename - will be added around the file's content, so that internal - links to the filename will point to this Div's identifier. - `-F` *PROGRAM*, `--filter=`*PROGRAM* : Specify an executable to be used as a filter transforming the diff --git a/src/Text/Pandoc/App/Input.hs b/src/Text/Pandoc/App/Input.hs index 4c51e1faf0f1..ce6359e68a70 100644 --- a/src/Text/Pandoc/App/Input.hs +++ b/src/Text/Pandoc/App/Input.hs @@ -122,18 +122,13 @@ inputToLazyByteString (_, (bs,_)) = BL.fromStrict bs adjustLinksAndIds :: Extensions -> Text -> [Text] -> Pandoc -> Pandoc adjustLinksAndIds exts thisfile allfiles - | length allfiles > 1 = addDiv . walk fixInline . walk fixBlock + | length allfiles > 1 = walk fixInline . walk fixBlock | otherwise = id where toIdent :: Text -> Text toIdent = textToIdentifier exts . T.intercalate "__" . T.split (\c -> c == '/' || c == '\\') - addDiv :: Pandoc -> Pandoc - addDiv (Pandoc m bs) - | T.null thisfile = Pandoc m bs - | otherwise = Pandoc m [Div (toIdent thisfile,[],[]) bs] - fixBlock :: Block -> Block fixBlock (CodeBlock attr t) = CodeBlock (fixAttrs attr) t fixBlock (Header lev attr ils) = Header lev (fixAttrs attr) ils diff --git a/test/command/6384.md b/test/command/6384.md index 1be1c3e45ba6..ced3106aa788 100644 --- a/test/command/6384.md +++ b/test/command/6384.md @@ -1,16 +1,12 @@ ``` % pandoc --wrap=preserve --file-scope command/file1.txt command/file2.txt ^D -

Zed

foo and Zed and other Zed and other file and foreign Zed

-
-

Zed

foo

-
```