The beta version of MDToPPTX, a tool I’ve been creating to convert Markdown files to PowerPoint files (*.pptx), is now ready.
It’s written in C#, and the library part is built with .NET Standard 2.0. So, although I haven’t tested it, it should also work with .NET Core and Xamarin.
Using this, you can create PowerPoint files from Markdown.
PowerPoint file creation uses openxml. This allows creating pptx files even on machines without PowerPoint installed. However, even using the SDK, the difficulty level was high.
Since three backticks cannot be written inside a code block, they are replaced with ```
# Test Slide 1
This is a test slide.
**Bold** text.
*Italic* is also supported.
~~Strikethrough is possible too~~[Hyperlink Example](http://ayumax.hatenablog.com/)
↓ Code block
```csharp
class ClassA
{
public ClassA()
{
}
public void Func()
{
}
}
## Output PPTX
It will be output like this.
# Future Plans
Since the source is Markdown, the layout is only a straight vertical line, which feels a bit... hmm.<br/>
I'm debating whether to utilize PowerPoint's slide layouts or extend the Markdown syntax to include position information, but I'm hesitant to add strange original notation.
Also, for each Markdown block type, font size and area margins can be set from the code, so I need to externalize those settings in the future.
Furthermore, since this library is written in .NET Standard 2.0, I'm thinking of writing a Xamarin app that directly takes Markdown input and outputs pptx.
If my motivation continues, I want to release it for both iOS and Android!