Skip to content

Error parsing markdown #871

Closed
Closed

Description

@onigetoc

I have integrated MDXEditor in a project and I like its operation. Unfortunately, there are a lot of parsing problems that I cannot solve until now. I transformed a PDF from arxiv.org into Markdown and pasted the result in the editor. It is impossible to display the result in HTML. Here is a small extract of this PDF with this error.
I tested two PDFs at random from arxiv and both did not work.

Error parsing markdown: Unexpected character `^` (U+005E) before attribute name, expected a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag.
You can fix the errors in source mode and switch to rich text mode when you are ready.

Or

Error parsing markdown: Unexpected character `(` (U+0028) before attribute name, expected a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag.
You can fix the errors in source mode and switch to rich text mode when you are ready.

PFD to Makdown

# Leveraging Unlabeled Data to Predict Out-of-Distribution Performance 

Saurabh Garg*<br />Carnegie Mellon University<br />sgarg2@andrew.cmu.edu Sivaraman Balakrishnan<br />Carnegie Mellon University<br />sbalakri@andrew.cmu.edu Zachary C. Lipton<br />Carnegie Mellon University<br />zlipton@andrew.cmu.edu

Proof of Proposition 1. Consider a binary classification problem. Assume  \mathcal{P}  be the set of possible target conditional distribution of labels given  p_{s}(x, y)  and  p_{t}(x) .
The forward direction is simple. If  \mathcal{P}=\left\{p_{t}(y \mid x)\right\}  is singleton given  p_{s}(x, y)  and  p_{t}(x) , then the error of any classifier  f  on the target domain is identified and is given by
  
\mathcal{E}_{\mathcal{D}^{T}}(f)=\mathbb{E}_{x \sim p_{t}(x), y \sim p_{t}(y \mid x)}\left[\mathbb{I}\left[\underset{j \in \mathcal{Y}}{\arg \max } f_{j}(x) \neq y\right]\right]
  
For the reverse direction assume that given <p_{t}(x)  and  p_{s}(x, y) , we have two possible distributions  \mathcal{D}^{T}  and  \mathcal{D}^{T^{\prime}}  with  p_{t}(y \mid x), p_{t}^{\prime}(y \mid x) \in \mathcal{P}  such that on some  x  with  p_{t}(x)>0 , we have  <p_{t}(y \mid x) \neq p_{t}^{\prime}(y \mid x) . Consider  \mathcal{X}_{M}=\left\{x \in \mathcal{X} \mid p_{t}(x)>0\right.  and  \left.p_{t}(y=1 \mid x) \neq p_{t}^{\prime}(y=1 \mid x)\right\}  be the set of all input covariates where the two distributions differ. We will now choose a classifier  f  such that the error on the two distributions differ. On a subset  \mathcal{X}_{M}^{1}=\left\{x \in \mathcal{X} \mid p_{t}(x)>0\right.  and  \left.p_{t}(y=1 \mid x)>p_{t}^{\prime}(y=1 \mid x)\right\} , assume  f(x)=0  and on a subset  \mathcal{X}_{M}^{2}=\left\{x \in \mathcal{X} \mid p_{t}(x)>0\right.  and  \left. <p_{t}(y=1 \mid x)<p_{t}^{\prime}(y=1 \mid x)\right\} , assume  f(x)=1 . We will show that the error of  f  on distribution with  p_{t}(y \mid x)  is strictly greater than the error of  f  on distribution with  <p_{t}^{\prime}(y \mid x) . Formally

Even simple <br> or <p> or general xml, html tags break it.

All others Markdowns i found online or Github have successfully displayed this in HTML mode, but not MDXEditor.

It's dad because MDX Editor did exactly what I wanted. On the side of HTML content editing, MDX, MD.

Is there a way to fix this? Or... There is nothing to do?

Activity

  1. locked and limited conversation to collaborators on Oct 17, 2025
  2. converted this issue into a discussion #873 on Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions