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

Implement Github-Flavored Markdown on Markdown Code Blocks #41

Open
alkrauss48 opened this issue Oct 11, 2024 · 0 comments
Open

Implement Github-Flavored Markdown on Markdown Code Blocks #41

alkrauss48 opened this issue Oct 11, 2024 · 0 comments

Comments

@alkrauss48
Copy link
Owner

alkrauss48 commented Oct 11, 2024

This site uses marked for handling the processing of markdown, and Github-Flavored Markdown is a default feature (or it should be default, per the docs)

For example, if you add this block of code to your presentation:

```php
echo('foo bar');
$x = false;
\```

(but without that leading slash at the end; couldn't figure out how to display the code block backticks otherwise 😂) Then you will get the following HTML:

<pre><code class="language-php">echo('foo bar');
$x = false;
</code></pre>

Which looks like this:

Screenshot 2024-10-11 at 1 22 13 PM

It looks like it's doing something related to formatting, but so far only adding that language- class to the surrounding element. Without doing more research, I assume we need to:

  • Find a front-end tool that takes that code and styles it, or
  • Breaks that down into more classes, and then allows us to write styles to highlight the code ourselves

That's where I'm at with this. Research the rest, explore, and implement what you can!

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

No branches or pull requests

1 participant