Skip to content
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

Add markdown enhancements on export #75

Open
CePeU opened this issue Feb 28, 2024 · 1 comment
Open

Add markdown enhancements on export #75

CePeU opened this issue Feb 28, 2024 · 1 comment

Comments

@CePeU
Copy link

CePeU commented Feb 28, 2024

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
Copy link
Author

CePeU commented Feb 28, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant