• Tw's avatar
    markdown: fix json format parse issue · fbc18c5b
    Tw authored
    We can't use json meta parser's remaining buffered data as the markdown body
    because it may not contain the entire original content.
    Now we adopt the way like toml and yaml parser's way to extract the meta content
    at first.
    
    Also when spilting the meta data and content body, additional io.Copy is
    unnecessary.
    
    Fix issue #355
    Signed-off-by: default avatarTw <tw19881113@gmail.com>
    fbc18c5b
metadata.go 5.67 KB