Skip to content

add franklin flavored markdown#147

Closed
jkrumbiegel wants to merge 1 commit into
fredrikekre:masterfrom
jkrumbiegel:jk/franklin-flavor
Closed

add franklin flavored markdown#147
jkrumbiegel wants to merge 1 commit into
fredrikekre:masterfrom
jkrumbiegel:jk/franklin-flavor

Conversation

@jkrumbiegel
Copy link
Copy Markdown

@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
Comment thread src/Literate.jl
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
Copy Markdown
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.

2 participants