Improved Markdeep exporter for snippets metadata readability.
This commit is contained in:
parent
9163d0b145
commit
056dad228a
@ -190,6 +190,11 @@ LePage >> removeSnippetsMetadata [
|
|||||||
ifTrue: [ snippet options removeKey: 'metadata' ] ]
|
ifTrue: [ snippet options removeKey: 'metadata' ] ]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #'*MiniDocs' }
|
||||||
|
LePage >> sanitizeMetadata [
|
||||||
|
self allChildrenDepthFirst do: [:snippet | snippet sanitizeMetadata ]
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #'*MiniDocs' }
|
{ #category : #'*MiniDocs' }
|
||||||
LePage >> sharedVariablesBindings [
|
LePage >> sharedVariablesBindings [
|
||||||
| codeSnippets shared |
|
| codeSnippets shared |
|
||||||
|
@ -10,7 +10,7 @@ LeTextualSnippet >> asMarkdeep [
|
|||||||
output
|
output
|
||||||
nextPutAll: '<div st-class="' , self class greaseString , '"';
|
nextPutAll: '<div st-class="' , self class greaseString , '"';
|
||||||
nextPut: Character lf;
|
nextPut: Character lf;
|
||||||
nextPutAll: ' st-data="' , (STON toString: self metadata) , '">';
|
nextPutAll: ' st-data="' , (STON toStringPretty: self metadata) , '">';
|
||||||
nextPut: Character lf;
|
nextPut: Character lf;
|
||||||
nextPutAll: self markdeepCustomOpener;
|
nextPutAll: self markdeepCustomOpener;
|
||||||
nextPutAll: self contentAsString;
|
nextPutAll: self contentAsString;
|
||||||
@ -19,7 +19,7 @@ LeTextualSnippet >> asMarkdeep [
|
|||||||
nextPutAll: '</div>';
|
nextPutAll: '</div>';
|
||||||
nextPut: Character lf;
|
nextPut: Character lf;
|
||||||
nextPut: Character lf.
|
nextPut: Character lf.
|
||||||
^ output contents
|
^ output contents withInternetLineEndings
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #'*MiniDocs' }
|
{ #category : #'*MiniDocs' }
|
||||||
|
@ -26,8 +26,8 @@ LeYoutubeReferenceSnippet >> metadataDiv [
|
|||||||
output
|
output
|
||||||
nextPutAll: '<div st-class="' , self class greaseString , '"';
|
nextPutAll: '<div st-class="' , self class greaseString , '"';
|
||||||
nextPut: Character lf;
|
nextPut: Character lf;
|
||||||
nextPutAll: ' st-data="' , (STON toString: self metadata) , '">'.
|
nextPutAll: ' st-data="' , (STON toStringPretty: self metadata) , '">'.
|
||||||
^ output.
|
^ output contents withInternetLineEndings.
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #'*MiniDocs' }
|
{ #category : #'*MiniDocs' }
|
||||||
|
Loading…
Reference in New Issue
Block a user