Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:DoccZz/docc2html into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
helje5 committed Oct 4, 2021
2 parents 1de5a5c + adc59da commit 2617a08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Sources/DocCHTMLExporter/HTML/InlineContentHTML.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ extension DocCArchive.InlineContent {

case .emphasis(let value):
return "<em>" + value.generateHTML(in: ctx) + "</em>"

case .strong(let value):
return "<strong>" + value.generateHTML(in: ctx) + "</strong>"
case .reference(let identifier, let isActive,
_ /* let overridingTitle */,
_ /* let overridingTitleInlineContent */):
Expand Down
4 changes: 2 additions & 2 deletions Sources/DocCHTMLExporter/Templates/CodeListing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ let CodeListingTemplate = Mustache(

extension DZRenderingContext {

func renderCodeListing(syntax: String = "Swift", lines: [ String ]) -> String
func renderCodeListing(syntax: String? = "Swift", lines: [ String ]) -> String
{
struct Line {
let line : Int
let code : String
}
return templates.codeListing(
syntax: syntax,
syntax: syntax ?? "",
lines: lines.enumerated().map { idx, code in
Line(line: idx + 1, code: code)
}
Expand Down

0 comments on commit 2617a08

Please sign in to comment.