On 10/10/25 21:56, Leif Halvard Silli wrote:
On 08.10.2025 09:50, by Hussein Shafie:
Leif wrote:
However, when I test this it, I am only able to convert inline
elements,. such as bold and italic text. Actually, I only looked
(closely) at the conversion of markdown headings, so at least that does
not work, AFAIK, but my suspicion is that that it is is the same issue
with all block level markdown.

I cannot reproduce the issue you describe with an XHTML document.

When I was reporting this issue, I was missing an example document ... It would be nice to know that we are talking about the same source code ...

It works only inside a <p> (*only* a <p>; not a <div> for example)

What does «It works» refer to?  Does it refer to headings conversion,

Headings and list conversions only work inside a <p> (this can be parameterized). Inline element (<strong>, <em>, <code>, etc) conversions work everywhere.

Of course, conversions which would make the document invalid will not work, that is, pressing Ctrl+Shift-SPACE has no effect and keeps the markdown markup as is.




such that it is headings conversion that only will work inside <p>? Or does it refers to unmarkdown as such, such that Parse Markdown as XML is only supposed to work inside <p>?

Based on my testing, for inline markup (bold, italics), then conversion to XML works both inside <div> as well as inside <p>.

Whereas, when it comes to heading (and lists) conversion, I cannot get it to work - not inside <p> (and not inside <div>, either).

By the way, it is kind of illogical that this should work inside a <p> element. Because: What will the resulting markup be? Would it be a <h1> nested inside a <p>? I guess not, since that would be illegal markup. Hence - again - an example document would be nice ...

for and the very first characters of this <p> must be a number of '#' for headings, '*' or '-' for unordered lists and '1.' for ordered lists.


I cannot get this to work, whether for # or * or -.

As explained in the previous email, we cannot reproduce the issue the describe. Note this new feature, like all new features, has been thoroughly tested on all platforms, using different Java runtimes.




But the way, how is a list with 4 list times going to look like, before > the 
conversion? Will it look like this: ?

<p>-List item 1<br/>
-List item 2<br/>
-List item 3<br/>
-List item 4</p>

Or this:

<p>-List item 1</p>
<p>-List item 2</p>
<p>-List item 3</p>
<p>-List item 4</p>


It's neither the first example or the second one.

Type <p>-List item 1</p> then press Ctrl+Shift-SPACE.

You'll get

<ul>
<li>List item 1</li>
</ul>

The caret being inside the <li>, simply press ENTER to add

<li>List item 2</li>

and then press ENTER again to add

<li>List item 3</li>

That is, the '-' prefix and Ctrl+Shift-SPACE (command "unmarkdown") are just here to give you a *quick* *start* when creating new lists.

This is shown in video https://www.xmlmind.com/xmleditor/unmarkdown.mp4

In this silent video (crudely recorded on my Linux box using "ffmpeg -video_size 1566x1164 -framerate 25 -f x11grab -i :0.0+658,454 unmarkdown.mp4"): - I press Ctrl+Shift-SPACE after typing "Heading 1", "Heading 2" and "Item #1" to create <h1>, <h2> and <ul></li>. - I press ENTER at the end of "Item #1" and after typing "Item #2" to add <li>s to the <ul>.

This new "unmarkdown" feature (https://www.xmlmind.com/xmleditor/_distrib/doc/xhtml/menu.html#d0e864) has been designed to perform quickly and simply just a few common actions. We thought it would be handy to have it in XXE.

We are sorry that it does not work for you. As this feature is quite unobtrusive, we recommend to simply ignore it (that is, do not press Ctrl+Shift-SPACE or on your Mac, bind this keyboard shortcut to a system action like Spotlight).




--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to