Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Fence Unexpected Replacements #104

Open
Mighten opened this issue Jun 3, 2023 · 0 comments
Open

Code Fence Unexpected Replacements #104

Mighten opened this issue Jun 3, 2023 · 0 comments

Comments

@Mighten
Copy link

Mighten commented Jun 3, 2023

Hi!
The code fences do a lot of unexpected replacements, which indeed look interesting. But they really cause great trouble for students who want to memorize the code, e.g., the != is replaced by $\neq$, -> is replaced by $\rightarrow$, etc.

Is there a switch to turn off and change back to the most common code fence style (such as the GitHub's) ?
Thanks.


ListNode* insertionSortList(ListNode* head) {
    if (head == nullptr) return head;
    ListNode tmpHead;
    ListNode *cur = head, *pre = &tmpHead;

    while (cur != nullptr) {
        while (pre->next != nullptr && pre->next->val < cur->val)
            pre = pre->next;

        ListNode* next = cur->next;
        cur->next = pre->next;
        pre->next = cur;
        pre = &tmpHead;
        cur = next;
    }
    return tmpHead.next;
}
issue
@Mighten Mighten changed the title Code Fence Unexpected Replacement Code Fence Unexpected Replacements Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant