@@ -1586,7 +1586,6 @@ symbol = do
15861586 <|> try (do lookAhead $ char '\\'
15871587 notFollowedBy' (() <$ rawTeXBlock)
15881588 char '\\')
1589− updateLastStrPos
15901589 return $ return $ B.str [result]
15911590
15921591-- parses inline code, between n `s and n `s
@@ -1633,7 +1632,7 @@ enclosure c = do
16331632 3 -> three c
16341633 2 -> two c mempty
16351634 1 -> one c mempty
1636− _ -> updateLastStrPos >> return (return $ B.str cs)
1635+ _ -> return (return $ B.str cs)
16371636
16381637ender :: PandocMonad m => Char -> Int -> MarkdownParser m ()
16391638ender c n = try $ do
@@ -1717,13 +1716,12 @@ nonEndline = satisfy (/='\n')
17171716
17181717str :: PandocMonad m => MarkdownParser m (F Inlines)
17191718str = do
1720− canRelocateSpace <- notAfterString
17211719 result <- many1 (alphaNum <|> try (char '.' <* notFollowedBy (char '.')))
17221720 updateLastStrPos
17231721 (do guardEnabled Ext_smart
17241722 abbrevs <- getOption readerAbbreviations
17251723 if not (null result) && last result == '.' && result `Set.member` abbrevs
1726− then try (do ils <- whitespace <|> endline
1724+ then try (do ils <- whitespace
17271725 -- ?? lookAhead alphaNum
17281726 -- replace space after with nonbreaking space
17291727 -- if softbreak, move before abbrev if possible (#4635)
@@ -1732,8 +1730,6 @@ str = do
17321730 case B.toList ils' of
17331731 [Space] ->
17341732 return (B.str result <> B.str "\160")
1735− [SoftBreak] | canRelocateSpace ->
1736− return (ils' <> B.str result <> B.str "\160")
17371733 _ -> return (B.str result <> ils'))
17381734 <|> return (return (B.str result))
17391735 else return (return (B.str result)))