* docx to dokuwiki continuous ordered list conversion issue (or not possible) @ 2021-01-23 22:02 Spricer [not found] ` <73f5cab0-5d1c-41b8-94a6-03c10153c2fen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Spricer @ 2021-01-23 22:02 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 3668 bytes --] I have many documents to convert with ordered number lists. And in my case specified conversion does not adhere to dokuwiki markup of: (space)(space)(dash) - Since there are picture inserts and some notes numbering is broken so conversion tries to mitigate problem by creating html style <ol start=x..> continuing listing. I end up with this: ---------------------------------------------------------- ====== Installation ====== <HTML><ol style="list-style-type: decimal;"></HTML> <HTML><li></HTML><HTML><p></HTML>Boot the server <HTML></p></HTML> <HTML><p></HTML>It launches automatically.<HTML></p></HTML> <HTML><p></HTML>{{media/image1.png}}<HTML></p></HTML><HTML></li></HTML><HTML></ol></HTML> Figure ‑: Deployment Window <HTML><ol start="2" style="list-style-type: decimal;"></HTML> <HTML><li></HTML><HTML><p></HTML>Click **Configure Network**.<HTML></p></HTML><HTML></li></HTML> <HTML><li></HTML><HTML><p></HTML>Network cards are displayed. <HTML></p></HTML><HTML></li></HTML><HTML></ol></HTML> > Using the MAC addresses noted earlier, identify the cards. > > For the card identified type the corresponding information in the following fields. * IP Address * Subnet Mask * Default Gateway * DNS Server * DNS Suffixes > For the card identified as xyz use next * IP Address * Subnet Mask > {{media/image2.png}} Figure ‑: Configure Network <HTML><ol start="4" style="list-style-type: decimal;"></HTML> <HTML><li></HTML><HTML><p></HTML>Click **Finish**.<HTML></p></HTML> <HTML><p></HTML>The main Deployment Toolkit window is displayed.<HTML></p></HTML> <HTML><p></HTML>{{media/image3.png}}<HTML></p></HTML><HTML></li></HTML><HTML></ol></HTML> Figure ‑: Deployment Main Window ----------------------------------------------------------------------------------- So I have manually to edit it like this to make it per dokuwiki language: --------------------------------------------------------------------------------------- - Boot the server - It launches automatically.\\ {{media/image1.png}}\\ Figure ‑: Deployment Window - Click **Configure Network**. - Network cards are displayed.\\ Using the MAC addresses noted earlier, identify the cards.\\ For the card identified type the corresponding information in the following fields. * IP Address * Subnet Mask * Default Gateway * DNS Server * DNS Suffixes\\ For the card identified as xyz use next * IP Address * Subnet Mask\\ {{media/image2.png}}\\ Figure ‑: Configure Network - Click **Finish**. - The main Deployment window is displayed.\\ {{media/image3.png}}\\ Figure ‑: Deployment Main Window --------------------------------------------------------------------------------------- *I was wondering if there is way (command option or filter) to achieve this or maybe I should ask for "feature request"?* If pandoc is able to detect need for list to be ordered by html code I think there should be a way to to use instead correct "(space)(space)(dash)" semantic and new line detection to convert to "\\(space)" way. Note there is also unordered sub-list which by dokuwiki markup should be "(space)(space)(space)(space)*" -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/73f5cab0-5d1c-41b8-94a6-03c10153c2fen%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 5249 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <73f5cab0-5d1c-41b8-94a6-03c10153c2fen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: docx to dokuwiki continuous ordered list conversion issue (or not possible) [not found] ` <73f5cab0-5d1c-41b8-94a6-03c10153c2fen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2021-01-23 22:55 ` John MacFarlane [not found] ` <m2r1mbi7py.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: John MacFarlane @ 2021-01-23 22:55 UTC (permalink / raw) To: Spricer, pandoc-discuss I'm not sure I understand everything in your comment. But pandoc is falling back to raw HTML here because the list starts with a number other than 1, and dokuwiki ordered lists don't give you a way to do that...or at least, so believed the person who created the dokuwiki writer. If there is a native dokuwiki way to indicate the start number of a list, please give a simple example. Spricer <mileek-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > I have many documents to convert with ordered number lists. And in my case > specified conversion does not adhere to dokuwiki markup of: > (space)(space)(dash) > - > Since there are picture inserts and some notes numbering is broken so > conversion tries to mitigate problem by creating html style <ol start=x..> > continuing listing. > I end up with this: > ---------------------------------------------------------- > ====== Installation ====== > > <HTML><ol style="list-style-type: decimal;"></HTML> > <HTML><li></HTML><HTML><p></HTML>Boot the server <HTML></p></HTML> > <HTML><p></HTML>It launches automatically.<HTML></p></HTML> > <HTML><p></HTML>{{media/image1.png}}<HTML></p></HTML><HTML></li></HTML><HTML></ol></HTML> > > Figure ‑: Deployment Window > > <HTML><ol start="2" style="list-style-type: decimal;"></HTML> > <HTML><li></HTML><HTML><p></HTML>Click **Configure > Network**.<HTML></p></HTML><HTML></li></HTML> > <HTML><li></HTML><HTML><p></HTML>Network cards are displayed. > <HTML></p></HTML><HTML></li></HTML><HTML></ol></HTML> > >> Using the MAC addresses noted earlier, identify the cards. >> >> For the card identified type the corresponding information in the > following fields. > * IP Address > * Subnet Mask > * Default Gateway > * DNS Server > * DNS Suffixes > >> For the card identified as xyz use next > > * IP Address > * Subnet Mask > >> {{media/image2.png}} > > Figure ‑: Configure Network > > <HTML><ol start="4" style="list-style-type: decimal;"></HTML> > <HTML><li></HTML><HTML><p></HTML>Click **Finish**.<HTML></p></HTML> > <HTML><p></HTML>The main Deployment Toolkit window is > displayed.<HTML></p></HTML> > <HTML><p></HTML>{{media/image3.png}}<HTML></p></HTML><HTML></li></HTML><HTML></ol></HTML> > > Figure ‑: Deployment Main Window > ----------------------------------------------------------------------------------- > > So I have manually to edit it like this to make it per dokuwiki language: > --------------------------------------------------------------------------------------- > - Boot the server > - It launches automatically.\\ {{media/image1.png}}\\ Figure ‑: > Deployment Window > - Click **Configure Network**. > - Network cards are displayed.\\ Using the MAC addresses noted earlier, > identify the cards.\\ For the card identified type the corresponding > information in the following fields. > * IP Address > * Subnet Mask > * Default Gateway > * DNS Server > * DNS Suffixes\\ For the card identified as xyz use next > * IP Address > * Subnet Mask\\ {{media/image2.png}}\\ Figure ‑: Configure Network > - Click **Finish**. > - The main Deployment window is displayed.\\ {{media/image3.png}}\\ > Figure ‑: Deployment Main Window > --------------------------------------------------------------------------------------- > *I was wondering if there is way (command option or filter) to achieve this > or maybe I should ask for "feature request"?* > If pandoc is able to detect need for list to be ordered by html code I > think there should be a way to to use instead correct > "(space)(space)(dash)" semantic and new line detection to convert to > "\\(space)" way. Note there is also unordered sub-list which by dokuwiki > markup should be "(space)(space)(space)(space)*" > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/73f5cab0-5d1c-41b8-94a6-03c10153c2fen%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m2r1mbi7py.fsf%40MacBook-Pro.hsd1.ca.comcast.net. ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <m2r1mbi7py.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>]
* Re: docx to dokuwiki continuous ordered list conversion issue (or not possible) [not found] ` <m2r1mbi7py.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org> @ 2021-01-23 23:58 ` Spricer [not found] ` <84ae92cc-4df0-4945-807a-bcf1fef7a572n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Spricer @ 2021-01-23 23:58 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 6701 bytes --] Sorry I cluttered e-mail with example but I think you are close. Basically we are saying same but I think pandoc is also trying to continue list by detecting numbers between two headlines. In my example word *Boot the server *is line 1. Even this is issue in this example (html conversion happened not sure why) since sometimes I see pandoc properly assigns (space)(space)(dash) to first even second line if there is no "new line" or insert (e.g. picture) I think I am saying this right (but I might be wrong) since occasionally numbers are skipped (e.g. they do not match original content in .docx). As for solution I mentioned this in my example. Not sure what you mean by native dokuwiki way but what I used does not require anything special (e.g. works in plain wiki). Maybe this is what you are looking (indirectly says that "\\" is magical :) New lines in dokuwiki <https://www.dokuwiki.org/faq:newlines> So ordered list in dokuwiki looks like this: (space)(space)(dash) (space)(space)(dash) it will give output: 1. ABC 2.CBA If you have newline in between it will break numbering e.g. 1.ABC I am breaking list 1.CBA So to resolve this you just need to detect line breakage(newline) and replace it with "(backslash)(backslash(space)". By doing this lists numbering continuance is preserved and also everything will be indented according to list. In example this looks like: *Code:* -ABC \\ I am not breaking list anymore -CBA ------------------------------------------ *Output:* 1.ABC I am not breaking list anymore 2.CBA This definitely (I hope :)) should be optional command parameter for *docx to dokuwiki* conversion (e.g. *pandoc --preserve-list-order*) Thanks, MileK On Saturday, January 23, 2021 at 5:55:53 PM UTC-5 John MacFarlane wrote: > > I'm not sure I understand everything in your comment. But pandoc > is falling back to raw HTML here because the list starts with a > number other than 1, and dokuwiki ordered lists don't give you > a way to do that...or at least, so believed the person who > created the dokuwiki writer. > > If there is a native dokuwiki way to indicate the start number > of a list, please give a simple example. > > Spricer <mil...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > > > I have many documents to convert with ordered number lists. And in my > case > > specified conversion does not adhere to dokuwiki markup of: > > (space)(space)(dash) > > - > > Since there are picture inserts and some notes numbering is broken so > > conversion tries to mitigate problem by creating html style <ol > start=x..> > > continuing listing. > > I end up with this: > > ---------------------------------------------------------- > > ====== Installation ====== > > > > <HTML><ol style="list-style-type: decimal;"></HTML> > > <HTML><li></HTML><HTML><p></HTML>Boot the server <HTML></p></HTML> > > <HTML><p></HTML>It launches automatically.<HTML></p></HTML> > > > <HTML><p></HTML>{{media/image1.png}}<HTML></p></HTML><HTML></li></HTML><HTML></ol></HTML> > > > > Figure ‑: Deployment Window > > > > <HTML><ol start="2" style="list-style-type: decimal;"></HTML> > > <HTML><li></HTML><HTML><p></HTML>Click **Configure > > Network**.<HTML></p></HTML><HTML></li></HTML> > > <HTML><li></HTML><HTML><p></HTML>Network cards are displayed. > > <HTML></p></HTML><HTML></li></HTML><HTML></ol></HTML> > > > >> Using the MAC addresses noted earlier, identify the cards. > >> > >> For the card identified type the corresponding information in the > > following fields. > > * IP Address > > * Subnet Mask > > * Default Gateway > > * DNS Server > > * DNS Suffixes > > > >> For the card identified as xyz use next > > > > * IP Address > > * Subnet Mask > > > >> {{media/image2.png}} > > > > Figure ‑: Configure Network > > > > <HTML><ol start="4" style="list-style-type: decimal;"></HTML> > > <HTML><li></HTML><HTML><p></HTML>Click **Finish**.<HTML></p></HTML> > > <HTML><p></HTML>The main Deployment Toolkit window is > > displayed.<HTML></p></HTML> > > > <HTML><p></HTML>{{media/image3.png}}<HTML></p></HTML><HTML></li></HTML><HTML></ol></HTML> > > > > Figure ‑: Deployment Main Window > > > ----------------------------------------------------------------------------------- > > > > So I have manually to edit it like this to make it per dokuwiki language: > > > --------------------------------------------------------------------------------------- > > - Boot the server > > - It launches automatically.\\ {{media/image1.png}}\\ Figure ‑: > > Deployment Window > > - Click **Configure Network**. > > - Network cards are displayed.\\ Using the MAC addresses noted earlier, > > identify the cards.\\ For the card identified type the corresponding > > information in the following fields. > > * IP Address > > * Subnet Mask > > * Default Gateway > > * DNS Server > > * DNS Suffixes\\ For the card identified as xyz use next > > * IP Address > > * Subnet Mask\\ {{media/image2.png}}\\ Figure ‑: Configure Network > > - Click **Finish**. > > - The main Deployment window is displayed.\\ {{media/image3.png}}\\ > > Figure ‑: Deployment Main Window > > > --------------------------------------------------------------------------------------- > > *I was wondering if there is way (command option or filter) to achieve > this > > or maybe I should ask for "feature request"?* > > If pandoc is able to detect need for list to be ordered by html code I > > think there should be a way to to use instead correct > > "(space)(space)(dash)" semantic and new line detection to convert to > > "\\(space)" way. Note there is also unordered sub-list which by dokuwiki > > markup should be "(space)(space)(space)(space)*" > > > > -- > > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/73f5cab0-5d1c-41b8-94a6-03c10153c2fen%40googlegroups.com > . > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/84ae92cc-4df0-4945-807a-bcf1fef7a572n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 9219 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <84ae92cc-4df0-4945-807a-bcf1fef7a572n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: docx to dokuwiki continuous ordered list conversion issue (or not possible) [not found] ` <84ae92cc-4df0-4945-807a-bcf1fef7a572n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2021-01-24 1:14 ` John MacFarlane [not found] ` <m2czxvi1aj.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: John MacFarlane @ 2021-01-24 1:14 UTC (permalink / raw) To: Spricer, pandoc-discuss \\ forces a newline without a new paragraph. So, that's not a proper way to render a list item containing two paragraphs. Pandoc will fall back to HTML for ordered lists in (at least) these two cases: - start number other than 1 - list item containing multiple paragraphs or other block-level content ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <m2czxvi1aj.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>]
* Re: docx to dokuwiki continuous ordered list conversion issue (or not possible) [not found] ` <m2czxvi1aj.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org> @ 2021-01-24 3:40 ` Spricer [not found] ` <f9c2cc53-dbf9-4388-8755-833e84339945n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Spricer @ 2021-01-24 3:40 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1419 bytes --] Thanks for finding time to reply John. I agree what are you saying but still think that option should exist to be used at user discretion since Pandoc is already powerful tool. "\\" works fine in dokuwiki where there is need to have continuous ordered list in dokuwiki markup way. Otherwise support for html has to be enabled + not to mention hell maintaining html ordered lists in article when you need to edit that list later. So on one side you are right on another side html would kill simplicity that markup language is offering. Just saying command switch would be nice. All the best, MileK On Saturday, January 23, 2021 at 8:14:44 PM UTC-5 John MacFarlane wrote: > > \\ forces a newline without a new paragraph. > So, that's not a proper way to render a list item containing two > paragraphs. > > Pandoc will fall back to HTML for ordered lists in (at least) > these two cases: > > - start number other than 1 > - list item containing multiple paragraphs or other block-level > content > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f9c2cc53-dbf9-4388-8755-833e84339945n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 2021 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <f9c2cc53-dbf9-4388-8755-833e84339945n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: docx to dokuwiki continuous ordered list conversion issue (or not possible) [not found] ` <f9c2cc53-dbf9-4388-8755-833e84339945n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2021-01-24 6:18 ` John MacFarlane [not found] ` <m2y2gihn7w.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: John MacFarlane @ 2021-01-24 6:18 UTC (permalink / raw) To: Spricer, pandoc-discuss I suppose you could use a lua filter that (a) changes the start number of ordered lists to 1 and (b) merges multiple paragraphs in a list item into one paragraph with hard line breaks. This would achieve what you're going for. Spricer <mileek-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > Thanks for finding time to reply John. > I agree what are you saying but still think that option should exist to be > used at user discretion since Pandoc is already powerful tool. "\\" works > fine in dokuwiki where there is need to have continuous ordered list in > dokuwiki markup way. Otherwise support for html has to be enabled + not to > mention hell maintaining html ordered lists in article when you need to > edit that list later. So on one side you are right on another side html > would kill simplicity that markup language is offering. Just saying command > switch would be nice. > > All the best, > > MileK > > > On Saturday, January 23, 2021 at 8:14:44 PM UTC-5 John MacFarlane wrote: > >> >> \\ forces a newline without a new paragraph. >> So, that's not a proper way to render a list item containing two >> paragraphs. >> >> Pandoc will fall back to HTML for ordered lists in (at least) >> these two cases: >> >> - start number other than 1 >> - list item containing multiple paragraphs or other block-level >> content >> > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f9c2cc53-dbf9-4388-8755-833e84339945n%40googlegroups.com. ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <m2y2gihn7w.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>]
* RE: docx to dokuwiki continuous ordered list conversion issue (or not possible) [not found] ` <m2y2gihn7w.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org> @ 2021-01-24 6:51 ` Zev Spitz [not found] ` <6AFF4B4F-3130-475D-9736-423B6C492401-DAm+jCDmP11mR6Xm/wNWPw@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Zev Spitz @ 2021-01-24 6:51 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/html, Size: 6590 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <6AFF4B4F-3130-475D-9736-423B6C492401-DAm+jCDmP11mR6Xm/wNWPw@public.gmane.org>]
* Re: docx to dokuwiki continuous ordered list conversion issue (or not possible) [not found] ` <6AFF4B4F-3130-475D-9736-423B6C492401-DAm+jCDmP11mR6Xm/wNWPw@public.gmane.org> @ 2021-01-24 17:18 ` Spricer 0 siblings, 0 replies; 8+ messages in thread From: Spricer @ 2021-01-24 17:18 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 4535 bytes --] I am not sure if I understood completely lua filter creation you are suggesting (never worked with lua) but if you are suggesting that all paragraphs should be converted to list then this is not what I am going for as not all paragraph make list order. Some paragraphs just need to be outputted in new line but not as paragraph since that would break numbering in dokuwiki. What I am trying to achieve is. -mostly pandoc is able to detect first item of ordered list in word so that is fine (it converts it to (space)(space)(dash)) -check next paragraph or newline and if starts with: (a) number -> change number to (space)(space)(dash) dokuwiki markup (b) does not start with number -> append it to previous listed item as "\\(space)+<paragraph>" In example this would look like this: (word) 1. some text 2. some more text {{picture}} text without list 3. or more text (dokuwiki) - some text - some more text\\ {picture}}\\ text without list - or more text I hope I will find time to learn how to create lua filters Thanks, MileK On Sunday, January 24, 2021 at 1:51:08 AM UTC-5 spit...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > Or a filter in any language. > > Alternatively, you might manipulate a copy of thw Word document before > passing it into Pandoc to do the same, either via the Word object model ( > https://docs.microsoft.com/en-us/office/vba/api/overview/word/object-model) > or using the Office Open XML SDK ( > https://docs.microsoft.com/en-us/office/open-xml/open-xml-sdk). > > > > *From: *John MacFarlane > *Sent: *Sunday, 24 January 2021 8:18 am > *To: *Spricer; pandoc-discuss > *Subject: *Re: docx to dokuwiki continuous ordered list conversion issue > (or not possible) > > > > > > I suppose you could use a lua filter that (a) changes the > > start number of ordered lists to 1 and (b) merges multiple > > paragraphs in a list item into one paragraph with hard line > > breaks. This would achieve what you're going for. > > > > Spricer <mil...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > > > > > Thanks for finding time to reply John. > > > I agree what are you saying but still think that option should exist to > be > > > used at user discretion since Pandoc is already powerful tool. "\\" > works > > > fine in dokuwiki where there is need to have continuous ordered list in > > > dokuwiki markup way. Otherwise support for html has to be enabled + not > to > > > mention hell maintaining html ordered lists in article when you need to > > > edit that list later. So on one side you are right on another side html > > > would kill simplicity that markup language is offering. Just saying > command > > > switch would be nice. > > > > > > All the best, > > > > > > MileK > > > > > > > > > On Saturday, January 23, 2021 at 8:14:44 PM UTC-5 John MacFarlane wrote: > > > > > >> > > >> \\ forces a newline without a new paragraph. > > >> So, that's not a proper way to render a list item containing two > > >> paragraphs. > > >> > > >> Pandoc will fall back to HTML for ordered lists in (at least) > > >> these two cases: > > >> > > >> - start number other than 1 > > >> - list item containing multiple paragraphs or other block-level > > >> content > > >> > > > > > > -- > > > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > > > To unsubscribe from this group and stop receiving emails from it, send > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/f9c2cc53-dbf9-4388-8755-833e84339945n%40googlegroups.com > . > > > > -- > > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/m2y2gihn7w.fsf%40MacBook-Pro.hsd1.ca.comcast.net > . > > > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9bb88777-0e61-4336-aca2-a291b07b8efbn%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 8842 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-01-24 17:18 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-01-23 22:02 docx to dokuwiki continuous ordered list conversion issue (or not possible) Spricer [not found] ` <73f5cab0-5d1c-41b8-94a6-03c10153c2fen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2021-01-23 22:55 ` John MacFarlane [not found] ` <m2r1mbi7py.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org> 2021-01-23 23:58 ` Spricer [not found] ` <84ae92cc-4df0-4945-807a-bcf1fef7a572n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2021-01-24 1:14 ` John MacFarlane [not found] ` <m2czxvi1aj.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org> 2021-01-24 3:40 ` Spricer [not found] ` <f9c2cc53-dbf9-4388-8755-833e84339945n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2021-01-24 6:18 ` John MacFarlane [not found] ` <m2y2gihn7w.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org> 2021-01-24 6:51 ` Zev Spitz [not found] ` <6AFF4B4F-3130-475D-9736-423B6C492401-DAm+jCDmP11mR6Xm/wNWPw@public.gmane.org> 2021-01-24 17:18 ` Spricer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).