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 franklin flavored markdown #147

Closed

Conversation

jkrumbiegel
Copy link

@jkrumbiegel jkrumbiegel commented Jun 21, 2021

I have just duplicated the original function here with some changes, as I don't know what a good entry point for the "flavor" would be. The flavor struct could hold some more options, for example which mime types to use, and in what order. For example I added svg here because that was missing.

The only other part is that html showables are inserted in ~~~ fences.

fredrikekre added a commit that referenced this pull request Jul 8, 2021
Adds `Literate.FranklinFlavor` that supports text/html output
when executing the markdown file.

fixes #146, closes #147
r, str, _ = execute_block(sb, block)
plain_fence = "\n```\n" => "\n```" # issue #101: consecutive codefenced blocks need newline
if r !== nothing && !REPL.ends_with_semicolon(block)
for (mime, ext) in [(MIME("image/svg+xml"), ".svg"), (MIME("image/png"), ".png"), (MIME("image/jpeg"), ".jpeg")]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jkrumbiegel is this fine for svg output or is it better to use something like JuliaDocs/Documenter.jl#1538? I only included text/html in my PR for now.

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

Successfully merging this pull request may close these issues.

None yet

2 participants