Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/pandocPublic

default language for codeblocks #53

Closed
Assignees
jgm
@jgm

Description

@jgm

see the text below for a description of the enhancement, which i posted
recently to pandoc-discuss.

a diff is attached; please feel free to use/modify/ignore it.

note that i have not updated README to mention the new option


i love the new syntax-highlighting of codeblocks, but the one downside
for me is having to use delimited-codeblock sytax and the language
annotation for all my code snippets, where previously the indented-
code syntax was so simple and readable.

but it was easy (what nice code!) to add a --default-codeblock-class
option to pandoc, which is then used to populate a new writer option
that specifies the classes to use for a codeblock when none have been
specified (which is the result of an indentation-style codeblock).

now all my code is magically highlighted, without changing the
markdown at all! (and for the rare case of code that shouldn't be
highlighted, i can use the delimited syntax to give some non-assigned
"language" like "ignore".)

Google Code Info:
Issue #: 87
Author:butt...@gmail.com
Created On: 2008-10-03T23:05:03.000Z
Closed On: 2009-12-01T06:56:47.000Z

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp