Markdown Importing

This forum is for all Flare issues not related to any of the other categories.
Post Reply
yk_ka
Jr. Propeller Head
Posts: 2
Joined: Mon Feb 06, 2023 11:18 pm

Markdown Importing

Post by yk_ka »

I am trying to import the markdown file to MadCap Flare.
In the Markdown Import Editor, I filled out the fields in each tab.
The preview screen shown at the Accepted Imported Document screen looks fine. But when I click Accept, it shows the following error.

The file xxxx contains invalid XML:
Do you want to open it as text?
(xxx = htm file)

I click Yes, and opened the text editor. I needed to deal with endless, ununderstandable errors on tags, even though all the syntaxes showing errors perfectly look fine to me.

<for example>
<li><p>Launch a browser and enter the URL for the option.<br>
The login screen will appear.<br>
e.g., https:xxxxx</p>
</li>

The warning disappears when I deleted the closing p tag </p>.
I confused.

Sorry for this if this explanation is not good, but would you please help me with this?
robdocsmith
Sr. Propeller Head
Posts: 247
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: Markdown Importing

Post by robdocsmith »

In this case it's likely not the </p> tag but the <br> tags. XML requires closing slashes for single tags like these and <img> tags:

Code: Select all

<br />
<img src="something.jpg" />
The space and closing slash should fix these tags. How you get those from markdown I don't know having never used it. Sorry for only half helping...

Rob
yk_ka
Jr. Propeller Head
Posts: 2
Joined: Mon Feb 06, 2023 11:18 pm

Re: Markdown Importing

Post by yk_ka »

The errors it seems hopeless are all gone by just adding spaces and closing slashes! Thank you so much!
Yk
Post Reply