v0.31.6 Release Notes

    • ✨ enhancement: updated the inlineNodeParser's parameter getTokenDetails to provide extra information in the callback and you can return in the callback whether a white space needs to be added before or after.
    inlineNodeParser(md, {
        tokenName: 'note_tag',
        regex: MARKDOWN_REGEX,
        // new parameters `offset` and `srcText`
        getTokenDetails: (match, offset, srcText) => {
           // use extra information to return the token details
           return {
                payload: string;
                markup: string;
                // Tell whether to insert a space before this token
                whiteSpaceBefore?: boolean;
                // Tell whether to insert a space after this token
                whiteSpaceAfter?: boolean;