bingryan / obsidian-markdown-export-plugin

This plugin allows to export directory/single markdown to a folder. support output format(html/markdown)
67 stars 11 forks source link

Add markdown enhancements on export #75

Open CePeU opened 7 months ago

CePeU commented 7 months ago

I am currently looking into how to make an easy build process for publishing my obsidian notes to github (so you will get 3 enhancement proposals).

As markdown is not a structured and clearly defined format it would be nice if one could add a list of regex commands which touch and change the exported markdown.

For example I would need code blocks to contain an additional "markdown" tag/command on export which Obsidian does not have or which is implemented by another plugin but has a different name.

Example: An Obsidian Plugin offers to change and show the line numbering of code blocks. regular: ´´´python plugin: ´´´python ln:1 export: ´´´python linenums="1"

With a regex I could change either ´´´python or ´´´python ln:1 to the desired ´´´python linenums="1"

CePeU commented 7 months ago

I did a VERY rudimentary regex enhancement. I tried to implement an enhancement so one string can be replaced before export. I did my changes in javascript directly and it seems to work. I have little experience and no toolchain for Typescript. I am not very profficient yet with github. How can I branch the code/give it to you as a pull request for inspeciton? (As I hopefully transfered the code correctly)