@@ -949,7 +949,8 @@ table = gridTable False <|> simpleTable False <|>
951inline :: RSTParser Inlines
951inline :: RSTParser Inlines
952+inline = choice [ note -- can start with whitespace, so try before ws
952−inline = choice [ whitespace
953+ , whitespace
955 , endline
956 , endline
@@ -958,7 +959,6 @@ inline = choice [ whitespace
960 , interpretedRole
961 , interpretedRole
963 , hyphens
963 , hyphens
964 , escapedChar
964 , escapedChar
@@ -1174,6 +1174,7 @@ subst = try $ do
1175note :: RSTParser Inlines
1175note :: RSTParser Inlines
1176note = try $ do
1176note = try $ do
1177+ optional whitespace
1177 ref <- noteMarker
1178 ref <- noteMarker
1178 char '_'
1179 char '_'
1179 state <- getState
1180 state <- getState