Debugging Markdeep conversors.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2023-05-23 08:08:35 -05:00
parent e7411c2075
commit e3f3a62078

View File

@ -60,7 +60,7 @@ Markdeep >> bodyReplaceAll: original with: replacement [
{ #category : #accessing } { #category : #accessing }
Markdeep >> commentPubPubDelimiters [ Markdeep >> commentPubPubDelimiters [
| commented openners | | commented openners |
openners := #('::: {.pub-body-component}' '::: {.editor .Prosemirror}' '::: {.pub-notes}'). openners := #('::: {.pub-body-component}' '::: pub-body-component' '::: {.editor .Prosemirror}' '::: {.pub-notes}').
commented := self body. commented := self body.
openners do: [:openner | openners do: [:openner |
commented := commented copyReplaceAll: openner with: '<!--@div-open ', openner, '-->' commented := commented copyReplaceAll: openner with: '<!--@div-open ', openner, '-->'
@ -351,7 +351,8 @@ Markdeep >> pubPubFootnotesLinesRangeFor: contentSection [
| beginningLine endingLine | | beginningLine endingLine |
beginningLine := contentSection lines size + 1. beginningLine := contentSection lines size + 1.
contentSection lines doWithIndex: [:line :i | contentSection lines doWithIndex: [:line :i |
(line includesSubstring: '::: {.pub-notes}') ifTrue: [ beginningLine := i ]. ((line includesSubstring: '::: {.pub-notes}') or: [line includesSubstring: '::: pub-notes'])
ifTrue: [ beginningLine := i ].
(i > beginningLine and: [ line beginsWith: ':::' ]) (i > beginningLine and: [ line beginsWith: ':::' ])
ifTrue: [ ifTrue: [
endingLine := i. endingLine := i.
@ -465,7 +466,8 @@ please visit the HTML version or download the PDF.
{ #category : #accessing } { #category : #accessing }
Markdeep >> removeCCByLicenseDiv [ Markdeep >> removeCCByLicenseDiv [
| licenseDiv| | licenseDiv|
licenseDiv := '<div> licenseDiv := '
<div>
**License:** [Creative Commons Attribution 4.0 International License **License:** [Creative Commons Attribution 4.0 International License
(CC-BY 4.0)](https://creativecommons.org/licenses/by/4.0/) (CC-BY 4.0)](https://creativecommons.org/licenses/by/4.0/)