1 224
edições
Linha 21: | Linha 21: | ||
<nowiki><nowiki> Desabilitar wiki markdown </nowiki></nowiki> | <nowiki><nowiki> Desabilitar wiki markdown </nowiki></nowiki> | ||
Bloco de código | === Bloco de código === | ||
Usando ''[https://www.mediawiki.org/wiki/Extension:SyntaxHighlight syntaxhighlight]'': | |||
==== Python ==== | |||
<syntaxhighlight lang="python" line> | <syntaxhighlight lang="python" line> | ||
def quick_sort(arr): | def quick_sort(arr): | ||
Linha 46: | Linha 49: | ||
if len(arr) <= 1: | if len(arr) <= 1: | ||
return arr | return arr | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Linha 66: | Linha 62: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Bash ==== | |||
<syntaxhighlight lang="bash" line> | |||
# teste bash: | |||
pandoc -f commonmark markdownfile.md -t mediawiki -o out.wiki | |||
pandoc -t mediawiki -f html SBIDE2022resumo1osmCodesMetodologia.html # = SPans e divs | |||
pandoc -f html -t markdown-raw_html-native_divs-native_spans SBIDE2022resumo1osmCodesMetodologia.html | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
pandoc -f commonmark markdownfile.md -t mediawiki -o out.wiki | pandoc -f commonmark markdownfile.md -t mediawiki -o out.wiki |
edições