-
Notifications
You must be signed in to change notification settings - Fork 35
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
Feature Request: Add support for output in markdown format #36
Comments
I do have written this part already a bit back. Currently it is an external
function for the moment, and I am not really sure how I I can completely
integrate in pscribo. Any idea how?
|
@Stephanevg I need to update the Plugin help to give you guys some guidance. If you already have part of this written, it will obviously help! Is this code hosted anywhere? @Bohem1 @Stephanevg @irwins To write a plugin you need to write functions that will take an object (Section, Paragraph and Table etc.) are export it to the target format. Therefore, you will need to think about how you're going to render each PScribo component... |
I was just looking through your PScribo HTML code. OutMD.ps1 & OutMD.Internal.ps1 is a start... 😀 |
Yeah 😜. It might be easier if you start with the OutText plugin rather than the HTML one (this includes a whole load of style formatting that you probably won't need)? |
Markdown cheets For a quick reference! 😉 |
@iainbrighton Thanks for the tip! Isee what you mean! |
@iainbrighton I have pasted it on a gist here -> https://gist.github.com/Stephanevg/f6409e7ab679872d69059943e5316c84 Basically, what this function does, is converting a pscribo document to MArkdown using the different ID's. There is a part I found on the internet somwhere, which I have (very) slightly modified. Please let me know when (and how) I can integrate this in the plugin from Scribo. #Stéphane |
@Stephanevg It's a lil more complicatedthan that... 😁 I've been going through the structure (Gotta love vscode for this). The about_Pluginshelp.txt is a good start. The Matrixs tells you which features are support and which aren't or by means of options... Plugin support matrix
Plugin-specific options HTML: NoPageLayoutStyle [bool]: Suppresses the page layout/look-and-feel style Writing a plugin
|
I probably need to do 2 things to help you here:
In the meantime @Bohem1 , @Stephanevg and @irwins (and for anyone else interested), we could look at hosting a 1 hour Skype/GoToMeeting session to take you though the text plugin and how that works. Is this of interest? |
Yeah good idea. Preferably in the evening of the week for me.
Le 9 mai 2017 10:36 PM, "Iain Brighton" <[email protected]> a écrit :
… I probably need to do 2 things to help you here:
1. *Write some "Writing a Plugin documentation"!*
2. Update the option handling code so there no duplication.
In the meantime @Bohem1 <https://github.com/Bohem1> , @Stephanevg
<https://github.com/Stephanevg> and @irwins <https://github.com/irwins>
(and for anyone else interested), we could look at hosting a 1 hour
Skype/GoToMeeting session to take you though the text plugin and how that
works. Is this of interest?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGAs8QNiE-0687MSwhp06gdwizoojqocks5r4M4ygaJpZM4NTRj4>
.
|
@iainbrighton a skype session is a great idea to. Preferably in the evening. |
Please inform me too - I'm interesting in direction of PScribo development because I use it for Format-Pester. |
Has anybody considered markdown as an input format? we have started transitioning a lot of our docs to MD to keep in source control but still require word as an end output, I was trying to tackle this pipeline with PScribo but there doesn't seem to be an easy way to take the minor format markup in a markdown file and generate the document object with the same formatting on the output side |
@ryandcoates, IMHO PSCribo isn't intended to transform existing markdown files to any other format. PScribo uses its own DSL (a domain specific language) and mapping markdown format to it will be almost impossible. What about Pandoc? |
That's what I thought might be the case, sometimes I try to be a bit too creative ;) I did try pandoc originally before someone pointed me to PScribo, it gets the data into word ok but the formatting support is fairly rudimentary, it might be the go to for a while though, I found the DSL for PScribo to be very easy to deal with when working from scratch, a lot of our scripts and tools are already taking the objects and parsing output into markdown and dumping them in source control, perhaps I could go further back in the chain and try and integrate PScribo there instead, sorry if I derailed :) |
@ryandcoates I agree with @it-praktyk here. That's not to say that someone couldn't write a MD > PScribo object conversion utility 😃. Once the MD plugin is written, you could then replace your existing scripts etc., but I'm not sure how far development has gone.. |
Hey buddy @iainbrighton ! |
This would be a great addition to this module if it were to surface. |
We should build support for markdown output. It should be treated as a first class plugin.
Initially maybe support only Github flavor markdown but make it possible to expand so one can choose.
The text was updated successfully, but these errors were encountered: