mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Add Markdown test to populate
This commit is contained in:
@ -9,9 +9,17 @@ class SithRenderer(Renderer):
|
||||
|
||||
class SithInlineLexer(InlineLexer):
|
||||
def _process_link(self, m, link, title=None):
|
||||
try:
|
||||
page = re.compile(
|
||||
r'^page://(\S*)' # page://nom_de_ma_page
|
||||
)
|
||||
match = page.search(link)
|
||||
page = match.group(1) or ""
|
||||
link = reverse('core:page', kwargs={'page_name': page})
|
||||
except: pass
|
||||
try:
|
||||
file_link = re.compile(
|
||||
r'^file://(\d*)/?(\S*)?' # dfile://4000/download
|
||||
r'^file://(\d*)/?(\S*)?' # file://4000/download
|
||||
)
|
||||
match = file_link.search(link)
|
||||
id = match.group(1)
|
||||
|
Reference in New Issue
Block a user