Sponsored Content
The Lounge What is on Your Mind? Under Consideration: Migrate the Forums to Discourse Post 303044960 by Neo on Tuesday 10th of March 2020 12:24:30 AM
Old 03-10-2020
For those interested; here is a markdown cheatsheet:

Markdown Cheatsheet . adam-p/markdown-here Wiki . GitHub

I used this cheat sheet to add some simple code to transform ICODE , MOD and NOPARSE tags, like this:

Under Consideration:  Migrate the Forums to Discourse-screen-shot-2020-03-10-112121-amjpg


But will need to run the migration again from scratch (or learn how to rake or otherwise modify the DB in discourse) after I figure out all the custom Ruby code I need to add to the migration script.

However, I'm learning Ruby a little bit now, something I never thought I would every do.
These 2 Users Gave Thanks to Neo For This Post:
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to migrate ?

Currently, I am planning a migration between machine which under True64UNIX. The new machine will run with higher version O/S. My question is, is there any solution on migrating one machine to another which with different O/S version? My goal is keeping minimum impact to the users. Excuse my... (1 Reply)
Discussion started by: coolmans
1 Replies

2. UNIX for Dummies Questions & Answers

Pipe not taken into consideration

I'm trying to see every file which my group (staff) has in a certain directory, recursively. The pipe ls -l -R | grep staff is not working exactly as I want, as for every directory to which my user does not have access, a line like: ls: ./directory/lost+found: The file access permissions do not... (5 Replies)
Discussion started by: panchopp
5 Replies

3. Solaris

Migrate oracle solaris 5.8 5.9

If I have an oracle 9 database environment on a san running solaris 5.8 as the os. Can I plug the san into a Solaris 5.9 environment and have the database work ? - as long as binaries are on the san (1 Reply)
Discussion started by: tim-carroll@com
1 Replies

4. Solaris

Can you migrate UFS to ZFS ?

I have some UFS volumes (non root), that I would like to change into ZFS volumes. Is this possible ? I think the only method is to create a new zfs volume and copy the data accoss, this would take a long time for us. Is there a quicker way ? Regards (5 Replies)
Discussion started by: wjones
5 Replies

5. Solaris

Migrate from MPXIO to Powerpath

Here is the issue: I am building a database server using Solaris 10x86 U8. The system is jumpstarted with mpxio enabled and booting from the san. We need to have powerpath 5.3 installed and would like to have powerpath take control of the the boot san as well or have mpxio control the san... (2 Replies)
Discussion started by: nabru72
2 Replies

6. Linux

Mysql Migrate

Hi , I would like to (MYSQL) migrate the all the data from solari's to linux box. I have checked whether mysql is installed or not. rpm -qa | grep -i mysql I confirmed !!!! I want to know the following points. 1) How can get to know what are mysql data files and location as well.... (4 Replies)
Discussion started by: Mani_apr08
4 Replies

7. BSD

Migrate a Hard Disk

hi Has anyone already tried to migrate a hard disk with FreeBSD using recoverdisk? (1 Reply)
Discussion started by: ccc
1 Replies

8. Shell Programming and Scripting

Migrate from FTP to SFTP

Hi,I am using following code for FTP in shell script file and it is working.Now I want to migrate from FTP to SFTP.What code changes/steps I have to perform for SFTP ? ftp -in <<FIN open $SAP_UP_SERVER user $SAP_UP_USER $SAP_UP_PASSWORD asc put... (7 Replies)
Discussion started by: Nitin Varshneya
7 Replies
MKD_FUNCTIONS(3)					   BSD Library Functions Manual 					  MKD_FUNCTIONS(3)

NAME
mkd_functions -- access and process Markdown documents. LIBRARY
Markdown (libmarkdown, -lmarkdown) SYNOPSIS
#include <mkdio.h> int mkd_compile(MMIOT *document, int flags); int mkd_css(MMIOT *document, char **doc); int mkd_generatecss(MMIOT *document, FILE *output); int mkd_document(MMIOT *document, char **doc); int mkd_generatehtml(MMIOT *document, FILE *output); int mkd_xhtmlpage(MMIOT *document, int flags, FILE *output); int mkd_toc(MMIOT *document, char **doc); void mkd_generatetoc(MMIOT *document, FILE *output); void mkd_cleanup(MMIOT*); char* mkd_doc_title(MMIOT*); char* mkd_doc_author(MMIOT*); char* mkd_doc_date(MMIOT*); DESCRIPTION
The markdown format supported in this implementation includes Pandoc-style header and inline <style> blocks, and the standard markdown(3) functions do not provide access to the data provided by either of those extensions. These functions give you access to that data, plus they provide a finer-grained way of converting Markdown documents into HTML. Given a MMIOT* generated by mkd_in() or mkd_string(), mkd_compile() compiles the document into <style>, Pandoc, and html sections. Once compiled, the document can be examined and written by the mkd_css(), mkd_document(), mkd_generatecss(), mkd_generatehtml(), mkd_generatetoc(), mkd_toc(), mkd_xhtmlpage(), mkd_doc_title(), mkd_doc_author(), and mkd_doc_date() functions. mkd_css() allocates a string and populates it with any <style> sections provided in the document, mkd_generatecss() writes any <style> sec- tions to the output, mkd_document() points text to the text of the document and returns the size of the document, mkd_generatehtml() writes the rest of the document to the output, and mkd_doc_title(), mkd_doc_author(), mkd_doc_date() are used to read the contents of a Pandoc header, if any. mkd_xhtmlpage() writes a xhtml page containing the document. The regular set of flags can be passed. mkd_toc() writes a document outline, in the form of a collection of nested lists with links to each header in the document, into a string allocated with malloc(), and returns the size. mkd_generatetoc() is like mkd_toc(), except that it writes the document outline to the given FILE* argument. mkd_cleanup() deletes a MMIOT* after processing is done. mkd_compile() accepts the same flags that markdown() and mkd_string() do; MKD_NOIMAGE Do not process `![]' and remove <img> tags from the output. MKD_NOLINKS Do not process `[]' and remove <a> tags from the output. MKD_NOPANTS Do not do Smartypants-style mangling of quotes, dashes, or ellipses. MKD_TAGTEXT Process the input as if you were inside a html tag. This means that no html tags will be generated, and mkd_compile() will attempt to escape anything that might terribly confuse a web browser. MKD_NO_EXT Do not process any markdown pseudo-protocols when handing [][] links. MKD_NOHEADER Do not attempt to parse any Pandoc-style headers. MKD_TOC Label all headers for use with the mkd_generatetoc() function. MKD_1_COMPAT MarkdownTest_1.0 compatibility flag; trim trailing spaces from the first line of code blocks and disable implicit refer- ence links. MKD_NOSTRIKETHROUGH Disable strikethrough support. RETURN VALUES
The function mkd_compile() returns 1 in the case of success, or 0 if the document is already compiled. The function mkd_generatecss() returns the number of bytes written in the case of success, or EOF if an error occurred. The function mkd_generatehtml() returns 0 on suc- cess, -1 on failure. SEE ALSO
markdown(1), markdown(3), mkd-line(3), markdown(7), mkd-extensions(7), mmap(2). http://daringfireball.net/projects/markdown/syntax BUGS
Error handling is minimal at best. Mastodon January 18, 2008 Mastodon
All times are GMT -4. The time now is 09:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy