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

How to use table in markdown #364

Closed
JacksonK9 opened this issue May 26, 2022 · 10 comments · Fixed by #445
Closed

How to use table in markdown #364

JacksonK9 opened this issue May 26, 2022 · 10 comments · Fixed by #445
Assignees
Labels
enhancement New feature or request

Comments

@JacksonK9
Copy link

Describe the bug
Hello
Thanks for your nice theme.
BTW, Can I use table in anatole?
When I upload to github, same markdown works well, but In anatole, It looks something weird.

image
image

upper one is In anatole, lower one is in markdown preview in VSCode.

Thank you

@JacksonK9 JacksonK9 added the bug Something isn't working label May 26, 2022
@lxndrblz
Copy link
Owner

Hi there,

the reason why your table looks different is because Anatole currently does not ship with a style for tables and therefore tables will be styled like default HTML tables.

You can either create a custom CSS for yourself or open a PR if you want to see a specific style being added.

@lxndrblz lxndrblz added enhancement New feature or request and removed bug Something isn't working labels May 26, 2022
@JacksonK9
Copy link
Author

Hello there.

I tried to change the style of table, But I don't know where to change.

I tried with themes\anatole\assets\scss\partials\components_post.scss

Is this file not correct for changing these table style?

or, Do I have to delete public folder and retry to build?

Could you give me some hints for me?

@JacksonK9
Copy link
Author

I change my config.toml and head.html, so It works for my page.

But I don't know how to Pull Request these function.

please give me some hints for Pull Requests.

@JacksonK9
Copy link
Author

I didn't mean I don't know how to Pull Request.

I meant that I don't know where to update the anatole theme for update the css style for table.

@DonaldNA
Copy link

@JacksonK9

I'm pretty sure you don't need to modify the scss files. Just add a custom css as detailed in the documentation here.

@JacksonK9
Copy link
Author

@DonaldNA
Yeah, I'm already in use of custom css
I mean this is for enhancement of theme.
If not needed, I will close this issue.

@lxndrblz
Copy link
Owner

@JacksonK9 The appropriate way of adding your changes would be to create a "_table.scss" file in the vendors folder. This file would then be linked within the main.scss.

@JacksonK9
Copy link
Author

I am trying to update the table.scss file

By the way, Can you tell me where to find how to rebuild the theme?

I changed the table.scss file, but It does not update automatically, So I want to rebuild the theme for check.

@lxndrblz
Copy link
Owner

lxndrblz commented Aug 9, 2022

@JacksonK9 Make sure to add it the table.scss to the main.scss. Afterwards, if you run it using hugo serve, all changes should be display automatically.

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

Successfully merging a pull request may close this issue.

3 participants