Opened 4 years ago
Closed 3 years ago
#1 closed Task (Works For Me)
Integrate standard markdown into trac site.
Reported by: | D Delmar Davis | Owned by: | Joe Dumoulin |
---|---|---|---|
Priority: | Would Be Nice | Milestone: | Server Modernization Phase II |
Component: | kb2018 (hp) | Keywords: | |
Cc: | Joe Dumoulin |
Change History (10)
comment:1 Changed 4 years ago by
comment:2 Changed 4 years ago by
Cc: | Joe added |
---|---|
Status: | assigned → accepted |
comment:3 Changed 4 years ago by
Milestone: | Server Modernization Phase 1 → Server Modernization Phase I |
---|
Milestone renamed
comment:4 Changed 4 years ago by
Edit this comment to see the markdown source.....
H1
- Bullet
- List
- Here
H2
Source Code
from trac.core import *
from trac.wiki.macros import WikiMacroBase
from trac.wiki.formatter import Formatter
An example link.
A table:
Header 1 | Header 2 |
---|---|
Content Cell | Content Cell |
Content Cell | Content Cell |
comment:5 Changed 4 years ago by
Description: | modified (diff) |
---|
Steps required
- Install prerec's using apt-get
apt-get install python-markdown apt-get install python-markdown-doc apt-get install unzip apt-get install python-pip
- download, unzip, and install.
root@herbert:/var/trac/src# wget "https://trac-hacks.org/browser/markdownmacro?rev=17321&format=zip" root@herbert:/var/trac/src# unzip markdownmacro root@herbert:/var/trac/src# mv markdownmacro\?rev\=17321\&format\=zip markdownmacro.r17321.zip root@herbert:/var/trac/src# unzip markdownmacro.r17321.zip root@herbert:/var/trac/src# pip install markdownmacro.r17321/trunk
- enable component in trac.ini
root@herbert:/var/trac/src# nano /var/trac/devel/env/conf/trac.ini .... [components] .... Markdown.* = enabled
comment:6 Changed 4 years ago by
Owner: | changed from D Delmar Davis to Joe |
---|---|
Status: | accepted → assigned |
Joe,
I installed the Markdown Macro on the Serverdocs.
Please test it and close this ticket out if it works.
D
comment:7 Changed 3 years ago by
Owner: | changed from Joe to Joe Dumoulin |
---|
comment:8 Changed 3 years ago by
May need to add the trac-hack to pick the users from a pulldown as the usernames are case sensitive.... joe != Joe....
comment:9 Changed 3 years ago by
Milestone: | Server Modernization Phase I → Server Modernization Phase II |
---|
Maybe Joe wil test this sometime in the next phase..... :)
comment:10 Changed 3 years ago by
Cc: | Joe Dumoulin added; Joe removed |
---|---|
Resolution: | → Works For Me |
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
This functionality is provided by a macro which allows you to write markdown bracketed by.
I will add it to the new trac server once I have the rest of it working.