MiniDocs/src/MiniDocs/HedgeDocGrammar.class.st

20 lines
453 B
Smalltalk
Raw Normal View History

Class {
#name : #HedgeDocGrammar,
#superclass : #PP2CompositeNode,
#instVars : [
'youtubeEmbeddedLink'
],
#category : #'MiniDocs-Model'
}
{ #category : #accessing }
HedgeDocGrammar >> start [
^ #any asPParser starLazy
]
{ #category : #accessing }
HedgeDocGrammar >> youtubeEmbeddedLink [
"I parse a youtube embedded link in a hedgedoc document."
^ '{%youtube' asPParser token trim, #any asPParser starLazy token, '%}' asPParser token trim
]