Created
August 17, 2008 13:56
-
-
Save pieter/5804 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def macro_GitLink(macro, args): | |
entry, description = args.split(",", 1) | |
return "<!-- GitLink[" + entry + "] " + description.lstrip() + " -->" + "\n" + \ | |
"<a href='#" + entry + "'></a>" | |
# print macro_GitLink(None, "Hello, this is a, test") | |
# Add this file to data/plugin/macro | |
# (See http://moinmo.in/HelpOnMacros#Writingyourownmacro) | |
# And then we can add FAQ entries in tho GitFAQ page, and | |
# GitBot will detect them automagically |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment