bug fix and implement inlinetoc syntax