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

Can toMarkdown supports code type selections? #44

Open
chaoszh opened this issue Sep 1, 2021 · 1 comment
Open

Can toMarkdown supports code type selections? #44

chaoszh opened this issue Sep 1, 2021 · 1 comment

Comments

@chaoszh
Copy link

chaoszh commented Sep 1, 2021

Hi,
I am using tomarkdown.ToMarkdown api to get markdown content of a certain page.
For code block, it generate markdown as below

     code

instead of

```python
code
```

I wonder if there is anyway to keep coding language attributes like the second one.

Thanks!

@kjk
Copy link
Owner

kjk commented Sep 1, 2021

I don't have the bandwidth to work on tomarkdown but I'll merge PRs.

You would have to change https://github.com/kjk/notionapi/blob/master/tomarkdown/markdown.go#L318

You can also implement custom rendering just for your code using Converter.RenderBlockOverride

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

2 participants