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

Headings, list and so on not working... #18

Open
bouchtaoui-dev opened this issue Jul 30, 2023 · 3 comments
Open

Headings, list and so on not working... #18

bouchtaoui-dev opened this issue Jul 30, 2023 · 3 comments

Comments

@bouchtaoui-dev
Copy link

Hi there, first of all, thank you very much for this nice project!
I used your library, but it partly works.
For example, making words italic or bold works well, but headings, list and so on unfortunately not.

I simply added the following line:

<script type="module" src="https://md-block.verou.me/md-block.js"></script>

as described by your documentation.

Do you know what might cause the problem not showing headings and bullet list correctly?

I also added prism.js for syntax highlighting, which works ok.

I hope you have the time to give a solution.
Thank you.

@bouchtaoui-dev
Copy link
Author

I see it's conflicting with Bulma css! That's a bummer 😕
Any idea how to fix that?

@bouchtaoui-dev
Copy link
Author

Found the solution for Bulma css here!

A single class to handle WYSIWYG generated content, where only HTML tags are available

<md-block class="content">
    <!-- Generated markdown here -->
</md-block>

I'm happy again, hope you too!

@digitigradeit
Copy link

What Markdown renderer are you using that generates <md-block as html for headings? that's atypical for a Markdown content generator so I'm curious if there's some advanced options that allow you to specify the CSS class which is included when it renders headings?

I have a jekyll pwoered site and my site uses the kramdown engine, which is consistent with Github Pages.

not trying to push ChatGPT but this is probably a perfect question for it. you might actually be surprisedd to hear what it has to say about bulma and with more information you could try to hae it come up with a solution for you. if you prompt it with " i'm tryign to setup a ____ -based site using the bulma css framework. haedlines that should have classes title and subtitle aren't. can you help?

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