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

Nested list elements don't convert properly #3

Open
jtwalters opened this Issue Aug 24, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@jtwalters

jtwalters commented Aug 24, 2012

Nested list should convert to --, ---, etc.

@jstalnak

This comment has been minimized.

jstalnak commented Dec 13, 2012

I have attached a sequence of screenshots showing:

  1. The source markdown that includes mixed ordered and unordered nested lists (also see below).
  2. The current markdown2confluence output; neither indenting or ordered/unordered lists are correctly converted.
  3. What the output looks like when put into Jira.
  4. What the Jira markup should look like to capture the nested lists (both ordered and unordered).
  5. How Jira displays the correct markup.

Here is a snipit of my markdown that is used in the screenshots:

###Preconditions:

* Will need to add myself to project, may need to add to group in project for authorizations and/or workflow
    1. Server Manager > Administer Users and Groups > Users
    1. FindMyNetID
    1. Action Menu > Edit Project Assignment
    1. Find Project/Site in list.
    1. Click on left-most check box, Ad Roles radio button, both right-most checkboxes.
* Customers should have some content in the CMS (it doesn't have to be much).
* Hosting
    1. They must chose where the test and production sites will publish.
        * Our hosting server (bold.doit.wisc.edu) - used for test, DoIT Shared Hosting,
        * Their departmental hosting - If any other place than our hosting server or DoIT SharedHosting we need SFTP usernames and passwords for their test and production sites.
        * Usually the DNS name for the test site will start with "wwwtest." e.g., wwwtest.quality.wisc.edu
        * Normal DNS for production, e.g., quality.wisc.edu or www.quality.wisc.edu
* We configure both prod/test sites at the same time.
    * Obfuscate prod username by adding '-DISABLED' to the uid to prevent publishing. When prod is ready, simply remove '-DISABLED' to publish site to production hosts.
* Do the configuration workflow "CMS Publication Configuration" on the CampusCMS wiki [https://wiki.doit.wisc.edu/confluence/display/CMS/CMS+Publication+Configuration](https://wiki.doit.wisc.edu/confluence/display/CMS/CMS+Publication+Configuration)

It's interesting that markdown uses indenting to determine nesting while Jira uses multiple symbols:

* Item 1
* Item 2
    * Item 2a
    * Item 2b
        * Item 2ba
        * Item 2bb
* Item 3

versus

* Item 1
* Item 2
** Item 2a
** Item 2b
*** Item 2ba
*** Item 2bb
* Item 3

The markdown is much easier to read, which, of course, is the point. The current markdown2confluence preserves indenting but does not do the correct markup. I did a test and the Jira markup still works indented! So it looks like the only change (!) is to track the indenting and put the right number of * or # and they can remain in the first column. This produces correct results:

* Item 1
* Item 2
**     Item 2a
**     Item 2b
###         Item 2ba
###         Item 2bb
* Item 3 

01JiraWiki_WhatTheMarkdownLooksLike
02JiraWiki_Markdown2ConfluenceOutput
03JiraWiki_MarkdownCoversionEnteredInJira
04JiraWiki_CorrectConfuenceMarkup
04JiraWiki_CorrectConfuenceMarkupAfterInserting

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