Skip to content

Support line numbers for any block of code #1303

Open
@dallascao

Description

@dallascao

Hi,

I am not able to make the code line numbers show. Here is the book.toml file. And I am using the Windows binary.

I am trying to follow the instructions here: https://rust-lang.github.io/mdBook/format/config.html

Here is an example of the rendered page: https://easiest.studio/php/zh-cn/chapter_1.html

Thanks!

Dallas

[book]
authors = ["曹首光"]
language = "zh-cn"
multilingual = false
src = "src"

[output.html]
default-theme = "light"
preferred-dark-theme = "navy"

[output.html.fold]
enable = false
level = 0

[output.html.playground]
editable = true
copyable = true
copy-js = true
line-numbers = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Code-BlocksArea: Code blocksC-enhancementCategory: Enhancement or feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions