Change History (10)

comment:1 Changed 3 years ago by D Delmar Davis

This functionality is provided by a macro which allows you to write markdown bracketed by.

{{{
#!Markdown
....markdown goes here....
}}}

I will add it to the new trac server once I have the rest of it working.

comment:2 Changed 3 years ago by D Delmar Davis

Cc: Joe added
Status: assignedaccepted

comment:3 Changed 3 years ago by D Delmar Davis

Milestone: Server Modernization Phase 1Server Modernization Phase I

Milestone renamed

comment:4 Changed 3 years ago by D Delmar Davis

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 3 years ago by D Delmar Davis

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 3 years ago by D Delmar Davis

Owner: changed from D Delmar Davis to Joe
Status: acceptedassigned

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 D Delmar Davis

Owner: changed from Joe to Joe Dumoulin

comment:8 Changed 3 years ago by D Delmar Davis

May need to add the trac-hack to pick the users from a pulldown as the usernames are case sensitive.... joe != Joe....

Last edited 3 years ago by D Delmar Davis (previous) (diff)

comment:9 Changed 3 years ago by D Delmar Davis

Milestone: Server Modernization Phase IServer Modernization Phase II

Maybe Joe wil test this sometime in the next phase..... :)

comment:10 Changed 3 years ago by D Delmar Davis

Cc: Joe Dumoulin added; Joe removed
Resolution: Works For Me
Status: assignedclosed
Note: See TracTickets for help on using tickets.