@@ -949,7 +949,8 @@ table = gridTable False <|> simpleTable False <|>
949949--
950950
951951inline :: RSTParser Inlines
952−inline = choice [ whitespace
952+inline = choice [ note -- can start with whitespace, so try before ws
953+ , whitespace
953954 , link
954955 , str
955956 , endline
@@ -958,7 +959,6 @@ inline = choice [ whitespace
958959 , code
959960 , subst
960961 , interpretedRole
961− , note
962962 , smart
963963 , hyphens
964964 , escapedChar
@@ -1174,6 +1174,7 @@ subst = try $ do
11741174
11751175note :: RSTParser Inlines
11761176note = try $ do
1177+ optional whitespace
11771178 ref <- noteMarker
11781179 char '_'
11791180 state <- getState