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

pandoc ignores <w:smartTag> when converting docx #2242

Closed
yanxyz opened this issue Jun 22, 2015 · 2 comments
Closed

pandoc ignores <w:smartTag> when converting docx #2242

yanxyz opened this issue Jun 22, 2015 · 2 comments

Comments

@yanxyz
Copy link

yanxyz commented Jun 22, 2015

My docx have such content:

static void Main() {...}

After converting it to markdown, the result does not have the word "Main". Then I unpack this file and look into the document.xml:

    <w:p w:rsidR="00E438A8" w:rsidRDefault="00E438A8" w:rsidP="00E438A8">
      <w:pPr>
        <w:pStyle w:val="Code" /></w:pPr>
      <w:r>
        <w:t xml:space="preserve">static void </w:t>
      </w:r>
      <w:smartTag w:uri="urn:schemas-microsoft-com:office:smarttags" w:element="place">
        <w:r>
          <w:t>Main</w:t>
        </w:r>
      </w:smartTag>
      <w:r>
        <w:t>() {...}</w:t>
      </w:r>
    </w:p>

If there is no <w:smartTag> then result is ok.

I put a test file on google drive

@jgm
Copy link
Owner

jgm commented Jun 26, 2015

@jkr - would it be easy and safe to respond to smartTag by just moving inside and parsing whatever is there?

@jkr
Copy link
Collaborator

jkr commented Jun 29, 2015

Yep, I think so. Let me do a bit more reading up on the tag (it's even
more undocumented than most) and make sure, but that seems to make sense.

John MacFarlane notifications@github.com writes:

@jkr - would it be easy and safe to respond to smartTag by just moving inside and parsing whatever is there?


Reply to this email directly or view it on GitHub:
#2242 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants